Question: A local bank hires you to write a program for theircoin counting machine. Customers can deposit largequantities of coins into the machine which separatesthem while

A local bank hires you to write a program for theircoin counting machine. Customers can deposit largequantities of coins into the machine which separatesthem while keeping a running total. Yourassignment is to write a program that calculates anddisplays the total amount from a collection of coinsthat are deposited. Assume the coins deposited are:58 dollar coins54 half-dollar coins608 quarters522 dimes675 nickels487 penniesUse data type float for each variable used in your program. To format the output, include the preprocessor directive header file#include . To ensure that the output reflects currency, use the followingstatement in your program:cout << fixed << showpoint << setprecision(2)Your output should look like this: The total amount is $____________

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!