Question: Design, code, and test a C++ program that helps a cashier make change. The program has two inputs: the amount due and the amount received

Design, code, and test a C++ program that helps a cashier make change. The program has two inputs: the amount due and the amount received from the customer. Display the number of dollars, quarters, dimes, nickels, and pennies that the customer should receive as change. You should give the customer the fewest number of bills/coins possible. Hint: Integer Division and Remainder will be helpful for this program. Your program should contain NO magic numbers. Make sure you prompt the user for the two inputs. Make sure your output is formatted properly and includes text that tells the user what the output represent.

Test your program with plenty of values to ensure that it's working properly, then submit output with the following values:

An amount due of $7.22 and amount received of $10.00.

An amount due of $1.11 and amount received of $5.00.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!