Paper Details  
 
   

Has Bibliography
3 Pages
811 Words

 
   
   
    Filter Topics  
 
     
   
 

program

AUTHOR: Grace Hopper (Change Grace's name to yours) COURSE: CSC 102 Section 1 (Use the correct section number) INSTRUCTOR: Elizabeth Hutchison DUE DATE: December 10th, 2010 (Use the correct due date) REFERENCE: "Computer Science - A structured Programming Approach using C++", Forouzan & Gilberg (List any other references.) ................................................................ 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 mustprompt the user for each quantity. For Example:How many TV's were sold?-------------* 40How many VCR's were sold?------------* 25How many Remote Controls were sold?--* 15How many CD Player's were sold?------* 10How many Tape Recorder's were sold?--* 5OUTPUT: The exact required format(based on the input from above)for the output from the program is shown below: UNIT TOTALQTY 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 TAX 1654.32 TOTAL 19783.82Note: Your program does not need to handle quantities greater than 99 nor dol...

Page 1 of 3 Next >

    More on program...

    Loading...
 
Copyright © 1999 - 2024 CollegeTermPapers.com. All Rights Reserved. DMCA