Question: Write this program in C++: Write a program to create a customers bill for a company. The company sells only five different products: TV, VCR,

Write this program in C++:

Write a program to create a customers bill for a company. The company sells only five different products: TV, VCR, Remote Controller, CD Player, and Tape Recorder. The unit prices are $400.00, $220.00, $35.20. $300.00, and $150.00, respectively. The program must read from the keyboard the quantity of each piece of equipment purchased. It then calculates the cost of each item, the subtotal, and the total cost after an 8.25% sales tax. The input data consists of integers representing the quantities of each item sold. These integers must be input into the program in a user-friendly way; that is the program must prompt the user for each quantity as shown below. The numbers in boldface italic show the users answers. How many TVs were sold? 3 How many VCRs were sold? 5 How many remote controllers were sold? 1 How many CDs were sold? 2 How many tape recorders were sold? 4 The format for the output from the program is shown below: QTY DESCRIPTION UNIT PRICE TOTAL PRICE ----- ------------------- ----------------- ------------------- XX TV 400.00 XXXX.XX XX VCR 220.00 XXXX.XX XX REMONT CTRLER 35.20 XXXX.XX XX CD PLAYER 300.00 XXXX.XX XX TAPE RECORDER 150.00 XXXX.XX --------------- SUBTOTAL XXXXX.XX TAX XXXX.XX TOTAL XXXXX.XX Use constants for the unit prices and the tax rate. Use integer variables to store the quantities for each item. Use floating-point variables to store the total price for each item, the bill subtotal, the tax amount, and the total amount of the bill. Run your program two times with the following data: Set 1 2 1 4 1 2 Set 2 3 0 2 0 21 Use good indentation and input /output manipulator to have a nice output for this program.

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!