hum

             AUTHOR: Grace Hopper (Change Grace's name to yours)
             COURSE: CSC 102 Section 1 (Use the correct section number)
             DUE DATE: December 10th, 2010 (Use the correct due date)
             REFERENCE: "Computer Science - A structured Programming
             Approach using C++", Forouzan & Gilberg
             ................................................................
             PURPOSE: Create a customer's bill for a company.
             The company sells only five different products:
             TV, VCR, Remote Controller, CD Player, and Tape Recorder.
             The Unit prices are $300.00, $120.00, $25.30, $250.00,
             and $15.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 a 9 1/8 % sales tax.
             INPUT: The input data consists of a set of integers representing
             the quantities of each item sold. Theses integers must be input
             into the program in a user friendly way; that is, the program must
             prompt the user for each quantity. For Example:
             How many TV's were sold?-------------* 40
             How many VCR's were sold?------------* 25
             How many Remote Controls were sold?--* 15
             How many CD Player's were sold?------* 10
             How many Tape Recorder's were sold?--* 5
             OUTPUT: The exact required format(based on the input from above)
             for the output from the program is shown below:
             UNIT TOTAL
             QTY DESCRIPTION PRICE PRICE
             --- ----------- ------ --------
             40 TV 300.00 12000.00
             25 VCR 120.00 3000.00
             15 REMOTE CTRL 25.30 379.50
             10 CD 250.00 2500.00
             5 TAPE RECORDER 50.00 250.00
             --------
             SUBTOTAL 18129.50
             ...

More Essays:

APA     MLA     Chicago
hum. (1969, December 31). In MegaEssays.com. Retrieved 08:56, March 28, 2024, from https://www.megaessays.com/viewpaper/51341.html