Question: c++ program Write a program that helps a cashier make change. The program gets a dollar amount from the user and calculates and displays how
Write a program that helps a cashier make change. The program gets a dollar amount from the user and calculates and displays how to make the change amount entered using the smallest number of bills and coins possible. The change should be made by first giving the maximum number of dollars, followed by the maximum number of quarters, then dimes, nickels, and finally pennies te Your answer should never have more than 3 quarters, 2 dimes, 1 nickel, or 4 pennies) You may assume that only amounts greater than SO will be entered Hint: Convert the amount entered by the user to pennies rounding up to the nearest integer using the round function from math You do not need and cannot use decisions in your solution. For example, if the user enters 19,39 the output of your program should be as shown below. Note, there is one tab before each of the quantities of dollars, quarters, etc. Change Due: 19 dollars 1 1 quarters 1 dimes 0 nickels 4 pennies Make sure you include a clear and explicit prompt asking the user to enter the amount of the change to be made in dollars Clearly label each output including the units In your IDE, not for submission investigate what happens if you don't use the round function when the input is 4.14 Think about what causes this
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
