Question: please write a C program using code blocks for this question 9. (Value: 8) Assume you are programming a vending machine that only give change
9. (Value: 8) Assume you are programming a vending machine that only give change with. You want the machine to return change using the lowest number of coins possible. Your possible coin types are quarters, dimes, nickels and pennies. Read the quantity to return as change from the user as a floating point number, that is using %f. Output the number of quarters, dimes, nickels and pennies you will give the user as change. For example, when the input is 2.12, you must print out: Quarters: 8 Dimest Nickels: 0 Pennies: 2
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
