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: dollar coins halfdollar coins quarters dimes nickels 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 setprecisionYour 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
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
