Explore BrainMass
Share

C++ Cash Register Program

This content was COPIED from BrainMass.com - View the original, and get the already-completed solution here!

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.

© BrainMass Inc. brainmass.com March 21, 2019, 8:25 pm ad1c9bdddf
https://brainmass.com/computer-science/cpp/c-cash-register-program-333506

Solution Summary

This solution helps go through writing a C++ cash register program within the context of programming.

$2.19