Write a c program that prompts the user for a cash value


Project : Purchase and Change

Write a C++ program that prompts the user for a cash value and an amount of purchases made against that amount. The program should then determine the change using the following US paper and coin currency denominations:

Fifty Cents, Twenty-Five Cents, Ten Cents, Five Cents, One Cent

One Dollar Bill, Five Dollar Bill, Ten Dollar Bill, Twenty Dollar Bill

Display how many of each denomination would be needed to make change. In order to receive full credit, you must include a loop in your program.

A sample program dialogue is shown below.

Enter a value: 32.00

Enter an amount of purchases made against this amount: 18.52

The remaining change is: 13.48

Twenty US Dollar Bills: 0

Ten US Dollar Bills: 1

Five US Dollar Bills: 0

One US Dollar Bills: 3

Fifty US Cents Coins: 0

Twenty-Five US Cents Coins: 1

Ten US Cents Coins: 2

Five US Cents Coins: 0

One US Cent Coins: 3

Continue(y/n)? n

Request for Solution File

Ask an Expert for Answer!!
C/C++ Programming: Write a c program that prompts the user for a cash value
Reference No:- TGS02902654

Expected delivery within 24 Hours