Write a program to help a bank teller

Click Here to Download this Answer Instantly

 

Write a program to help a bank teller keep track of coins in their till.
A bank teller needs a program to help keep track of how many pennies, nickels, dimes, and quarters they have. Every time they add a coin to the till, they will input the value of the coin. Write a program that will ask the user for the value of the coin in cents repeatedly until the user signals that they are done using a sentinel value of zero. The program tracks only pennies, nickels, dimes, and quarters which are worth 1, 5, 10, and 25 cents respectively. When the user is finished entering in their coins, the program will print out a count of how many coins of each has been received, the total value of all of the coins, and the number of times an incorrect coin value was entered.