Question: Write a program that will simulate a change machine found at cash registers. Input the amount due and amount paid from the keyboard. Print how
Write a program that will simulate a change machine found at cash registers. Input the amount due and amount paid from the keyboard. Print how much change is owed and number of quarters, dimes , nickels, and pennies in change a customer would receive. Using only pointers(malloc) data structure and dynamic memory location
Sample Run:
Please Enter the Cost of the Item: 4.57
Please Enter the Amount Paid: 5.00
Change Owed: 0.43
Quarters: 1
Dimes: 1
Nickels: 1
Pennies: 3
Step by Step Solution
There are 3 Steps involved in it
To accomplish this task we need to write a C program that uses pointers and dynamic memory allocation to calculate the change owed and break it down i... View full answer
Get step-by-step solutions from verified subject matter experts
