Question: Using pointers only Home Work Write a program that will simulate a change machine found at cash registers. Input the amount due and amount paid
Home Work 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 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
Get step-by-step solutions from verified subject matter experts
