Question: Write a program that prompts users (in main) for the amount of pennies they have. Use 2 value returning functions to convert the number of

Write a program that prompts users (in main) for the amount of pennies they have. Use 2 value returning functions to convert the number of pennies 1)into dollars and 2) into cents. Use cin to get the input from the keyboard. Then use division to get the dollars and use modulus to get the amount of cents. USE ONLY INTEGERS IN THIS PROGRAM.

Use the algorithm below: (be sure to use these as comments in your program)

1. Prompt the user to enter a number of cents. 2. Get the number of cents from the user. 3. Convert the number of cents into dollars and cents. 4. Output the conversion to the user in the currency format, e.g. $230.59 
 
code must be done in c++ 

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!