Question: C code only please Problem 1) (15 points) Write a C program that can determine and display the value of a collection of coins entered
C code only please

Problem 1) (15 points) Write a C program that can determine and display the value of a collection of coins entered by a user. Your program must complete and use the following function (Note: -10 points if the function is not used in your program). void credit(int quarter, int dime, int nickel, int penny, int *dollars, int cents); The function accepts numbers of each coin type (quarter, dime, nickel, penny) and outputs the total amount of money in terms of dollars and cents Sample execution (red entered by a user) Enter coins info (Quarter, Dime, Nickel, Penny): 14 12 25 131 Coin Credit: Dollars: 7 Change: 26 cents Do you want to continue (y or n) Enter coins info (Quarter, Dime, Nickel, Penny): 1000 0 109 Coin Credit: Dollars: 26 Change: 9 cents Do you want to continue (y or n)? y Enter coins info (Quarter, Dime, Nickel, Penny): 0 1000 500 175 Coin Credit: Dollars: 126 Change: 75 cents Do you want to continue (y or n)? n
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
