Question: C++ Write a program that mimics the COINSTAR machine in a bank or department store with the following specification: program will ask the user for

C++

Write a program that mimics the COINSTAR machine in a bank or department store with the following specification: program will ask the user for the number of pennies, nickels, dimes and quarters he has. Program then will convert that to dollar amount minus the fees calculated as follows: A. based on the dollar amount the fee should be 10% when you deposit $50 or less. B. when the deposited coins grow beyond $50 up to $100 the fee changes to 8% i.e. (50 - 100] C. when the deposited coins fall in the range of (100 - 150] the fee changes to 6% D. Any other deposit beyond 150 will be charged a 5% flat service charge. The program should display the following numbers: A. Total Deposit : B. Service Fee : C. Net Cash Back:

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!