Question: Program 2 (5 Marks) Note: Your submission should be a cpp file. Write a C++ program that prompts the user to enter an amount of

 Program 2 (5 Marks) Note: Your submission should be a cpp

Program 2 (5 Marks) Note: Your submission should be a cpp file. Write a C++ program that prompts the user to enter an amount of dollars, and outputs the maximum number of dollars, the maximum of Quarters (254), the maximum number of Dimes (10), the maximum number of Nickels (5), and the rest of Pennies (1) Example: If the user enters the number 32.65, the output should be: Enter the amount: 32.56 Max number of dollars: 32 Max number of Quarters: 2 Max number of Dimes: 0 Max number of Nickels: 1 Max number of Pennies: 1 Hint: use the remainder

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!