1. Engineering
  2. Computer Science
  3. i need to write a code...

Question: i need to write a code...

Question details

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 S400.00, S220, S35.20, S300.00, and SI 50.00, respectively. The program must read the quantity of each piece of equipment purchased from the keyboard. It then calculates the cost of each item, the subtotal, and the total cost after an 8.25% sales tax. The input data consist of a set 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 show the users answers.

Test data: Use either defined constants or memory 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 twice with the following data: Set 1> 21412 Set 2> 3 0 20 21

I need to write a code.

Solution by an expert tutor
Blurred Solution
This question has been solved
Subscribe to see this solution