/* File: makechange.c Name: This program uses a function that determines the number quarters, dimes, nickels and pennies make up the cents given. */ #include /* The function prototype is written for you. This prototype says that makechange() has five parameters. The first parameter is a normal int. The next four parameters are int reference parameters (i.e., pointers to int). */ void makechange(int , int *, int *, int *, int *) ; /* Don't change the main() function!!! */ int main () { int cents ; int quarters, dimes, nickels, pennies ; printf("This program will figure out the change for you.\n\n") ; printf("Enter number of cents: ") ; scanf("%d", ¢s) ; makechange(cents, &quarters, &dimes, &nickels, &pennies) ; printf("Make change using %d quarters, %d dimes, %d nickels and %d pennies.\n", quarters, dimes, nickels, pennies) ; return 0 ; } /* end of main function */ /* Function makechange Stores # of quarters, dimes, nickels and pennies add up to n cents. */ /* Implement the function makechange() here: */