Create a simple cash register program


Discuss the below:

Q: Write a simple C++ cash register program as per the following specifications.

The program should ask for the customer's first name and last name initials. Use 2 different variables, one for the first name and one for the last name.

The program should ask for the prices of 5 different items. Use 5 different input statements and 5 different variables.

The program should add the 5 products together giving the subtotal price.

Find the tax by multiplying the subtotal by a constant called TaxRate. Assume tax rate of 10%.

For the total, add the tax to the subtotal.

Output the first name initial, a period and space, last name initial, a period and space, a message to the user and the total

Solution Preview :

Prepared by a verified Expert
C/C++ Programming: Create a simple cash register program
Reference No:- TGS01937000

Now Priced at $25 (50% Discount)

Recommended (98%)

Rated (4.3/5)