/* Name: Garrett Haldrup Problem: Takes in name and age then outputs name with age in 5 years. Certification of Authenticity: I certify that this assignment is entirely my own work. */ #include void nameAge(); void countPennies(); int main(void) { nameAge(); countPennies(); return 0; } void nameAge() { printf("This program will take your name and age and see your age in 5 years\n"); //declare char name[100]; int age; //input printf("Enter your name: "); scanf("%s", name); printf("Enter your age: "); scanf("%d", &age); //Calculate age += 5; //output and calculate printf("Hi %s! In five years, you will be %d\n", name, age); } void countPennies() { //declare printf("This program will calculate the number of pennies.\n"); int dollars, quarters, dimes, nickels, pennies, totalPennies; //Input printf("Enter number of dollars: "); scanf("%d", &dollars); printf("Enter number of quarters: "); scanf("%d", &quarters); printf("Enter number of dimes: "); scanf("%d", &dimes); printf("Enter number of nickels: "); scanf("%d", &nickels); printf("Enter number of pennies: "); scanf("%d", &pennies); //calculate totalPennies = (dollars * 100) + (quarters * 25) + (dimes * 10) + (nickels * 5) + pennies; //Display printf("Total Pennies: %d\n", totalPennies); }