Iycee Charles de Gaulle Summary Hum Essay Research Paper APPLICATION Bill

Hum Essay Research Paper APPLICATION Bill

Hum Essay, Research Paper/*Application: Bill ReportFile Name: Bill.cppWriter: Grace Hopper ( Change Grace & # 8217 ; s name to yours )Course: CSC 102 Section 1 ( Use the right subdivision figure )Teacher: Elizabeth HutchisonDue Date: December 10th, 2010 ( Use the correct due day of the month )Mention: & # 8220 ; Computer Science & # 8211 ; A structured SchedulingApproach utilizing C++ & # 8221 ; , Forouzan & A ; Gilberg( List any other mentions.

)& # 8230 ; & # 8230 ; & # 8230 ; & # 8230 ; & # 8230 ; & # 8230 ; & # 8230 ; & # 8230 ; & # 8230 ; & # 8230 ; & # 8230 ; & # 8230 ; & # 8230 ; & # 8230 ; & # 8230 ; & # 8230 ; & # 8230 ; & # 8230 ; & # 8230 ; & # 8230 ; & # 8230 ; .Purpose: Make a client & # 8217 ; s measure for a company.The company sells merely five different merchandises:Television, VCR, Remote Controller, CD Player, and Tape Recorder.The Unit of measurement monetary values are $ 300.

We Will Write a Custom Essay Specifically
For You For Only $13.90/page!


order now

00, $ 120.00, $ 25.30, $ 250.00,and $ 15.00, severally.

The plan must read fromthe keyboard the measure of each piece of equipment purchased.It so calculates the cost of each point, the subtotal, andthe entire cost after a 9 1/8 % gross revenues revenue enhancement.Input signal: The input informations consists of a set of whole numbers stand foringthe measures of each point sold. Theses whole numbers must be inputinto the plan in a user friendly manner ; that is, the plan mustmotivate the user for each measure. For Example:How many Television & # 8217 ; s were sold? & # 8212 ; & # 8212 ; & # 8212 ; & # 8212 ; -* 40How many VCR & # 8217 ; s were sold? & # 8212 ; & # 8212 ; & # 8212 ; & # 8212 ; * 25How many Remote Controls were sold? & # 8211 ; * 15How many CD Player & # 8217 ; s were sold? & # 8212 ; & # 8212 ; * 10How many Tape Recorder & # 8217 ; s were sold? & # 8211 ; * 5End product: The exact required format ( based on the input from above )for the end product from the plan is shown below:UNIT TOTALQTY DESCRIPTION PRICE PRICE& # 8212 ; & # 8212 ; & # 8212 ; & # 8212 ; & # 8211 ; & # 8212 ; & # 8212 ; & # 8212 ; & # 8212 ; & # 8211 ;40 Television 300.00 12000.0025 VCR 120.00 3000.0015 REMOTE CTRL 25.30 379.5010 Cadmium 250.00 2500.005 TAPE RECORDER 50.00 250.00& # 8212 ; & # 8212 ; & # 8211 ;SUBTOTAL 18129.50Tax 1654.32TOTAL 19783.82Note: Your plan does non necessitate to manage measures greater than 99nor dollar sums greater than 99999.99& # 8230 ; & # 8230 ; & # 8230 ; & # 8230 ; & # 8230 ; & # 8230 ; & # 8230 ; & # 8230 ; & # 8230 ; & # 8230 ; & # 8230 ; & # 8230 ; & # 8230 ; & # 8230 ; & # 8230 ; & # 8230 ; & # 8230 ; & # 8230 ; & # 8230 ; & # 8230 ; & # 8230 ; .Dictionary:invariables:Cadmium ( float ) & # 8211 ; cost of CD PlayerREMOTE ( float ) & # 8211 ; cost of Remote ContollerTAPE ( float ) & # 8211 ; cost of Tape PlayerTax ( float ) & # 8211 ; gross revenues revenue enhancement rateTelevision ( float ) & # 8211 ; cost of TelevisonVCR ( float ) & # 8211 ; cost of VCRvariables:quantity_tv ( int ) – measure of TVs inputted by userquantity_vcr ( int ) – measure of VCRsinputted by userquantity_remote ( int ) – measure of Remote Controllers inputted by userquantity_cd ( int ) – measure of Cadmium Players inputted by userquantity_tape ( int ) – measure of Tape participants inputted by usersubtotal ( float ) – sum of all points before revenue enhancemententire ( float ) – sum of all points including revenue enhancementtotal_cd ( float ) – entire cost of all the Cadmium Playerstotal_remote ( float ) – entire cost of all the Remote Controllerstotal_tape ( float ) – entire cost of all the Tape Playerstotal_tax ( float ) – gross revenues revenue enhancement sumtotal_tv ( float ) – entire cost of all the TVstotal_vcr ( float ) – entire cost of all the VCRs*///=====================Begin Program Bill==========================# include*iostream.h*# include*iomanip.h*//Global Declarationsconst TV= 300.00 ;const VCR= 120.00 ;const REMOTE= 25.80 ;const CD= 250.00 ;const TAPE= 50.00 ;const TAX= 9 + 1/8 ;int chief ( viod ){// Local Declarationswhole number quantity_tv ;whole number quantity_vcr ;integer quantity_remote ;whole number quantity_CD ;whole number quantity_tape ;float subtotal ;float sum ;float total_tv ;float total_vcr ;float total_remote ;float total_cd ;float total_tape ;float tax_total ;//DON & # 8217 ; T FORGET: End product to the screen your name class and subdivision figure here! !//Prompt for and acquire measures from the usercout ** & # 8220 ; nHow many Television & # 8217 ; s were sold? & # 8212 ; & # 8212 ; & # 8212 ; & # 8212 ; -* & # 8220 ; ;cin ** measure ;cout ** & # 8220 ; How many VCR & # 8217 ; s were sold? & # 8212 ; & # 8212 ; & # 8212 ; & # 8212 ; & # 8211 ; * & # 8220 ; ;cin ** measure ;cout ** & # 8220 ; How many Remote Controls were sold? & # 8212 ; -* & # 8220 ; ;cin ** measure ;cout ** & # 8220 ; How many CD Player & # 8217 ; s were sold? & # 8212 ; & # 8212 ; & # 8211 ; * & # 8220 ; ;cin ** measure ;cout ** & # 8220 ; How many Tape Recorder & # 8217 ; s were sold? & # 8212 ; -* & # 8220 ; ;cin ** quantity_tape ;//Calculate the sumstotal_cd = CD * quantity_cd ;total_tv = TV * quantity_tvtotal_vcr =VCR * quantity_vcr ;total_tape = TAPE * quantity_tape ;total_remote = REMOTES * quantity_remote ;subtotal = total_tv * total_vcr * total_remote * total_cd * total_tape ;entire = subtotal + total_tax ;total_tax = subtotal + Tax ;Display consequences to the screencout ** setiosflags ( Ios: :fixed ) ;cout ** setprecision ( 2 ) ;//Print headerscout ** & # 8220 ; n t T UNITt TOTAL & # 8221 ; ** endl ;cout ** & # 8220 ; QTYtDESCRIPTIONt PRICEt PRICE & # 8221 ; ** endl ;cout ** & # 8220 ; & # 8212 ; t & # 8212 ; & # 8212 ; & # 8212 ; & # 8211 ; t & # 8212 ; & # 8212 ; t & # 8212 ; & # 8212 ; & # 8211 ; & # 8221 ; ** endl ;//Print listingcout ** setw ( 3 ) ** quantity_tv ** & # 8220 ; tTV t & # 8221 ; ** setw ( 6 ) ** Television ;** & # 8220 ; t & # 8221 ; ** setw ( 8 ) ** total_tv ** endl ;cout ** setw ( 4 ) ** quantity_vcr ** & # 8220 ; tVCR t & # 8221 ; ** setw ( 7 ) ** VCR ;** & # 8220 ; t & # 8221 ; ** setw ( 9 ) ** total_vcr ** endl ;cout ** setw ( 5 ) ** quantity_remote ** & # 8220 ; tREMOTE CTRL t & # 8221 ; ** setw ( 8 ) ** REMOTE ;** & # 8220 ; t & # 8221 ; ** setw ( 10 ) ** total_remote ** endl ;cout ** setw ( 6 ) ** quantity_cd ** & # 8220 ; tCD t & # 8221 ; ** setw ( 9 ) ** Cadmium ;** & # 8220 ; t & # 8221 ; ** setw ( 11 ) ** total_cd ** endl ;cout ** setw ( 7 ) ** quantity_tape ** & # 8220 ; tTAPE RECORDERt & # 8221 ; ** setw ( 10 ) ** TAPE ;** & # 8220 ; t & # 8221 ; ** setw ( 12 ) ** total_tape ** endl ;//Print sumscout ** & # 8220 ; tttt & # 8212 ; & # 8212 ; & # 8211 ; & # 8221 ; ** endl ;cout ** & # 8220 ; ttSUBTOTALt & # 8221 ; ** setw ( 18 ) ** sub_total ** N ;cout ** & # 8220 ; ttTAX t & # 8221 ; ** setw ( 18 ) ** total_tax ** N ;cout ** & # 8220 ; ttTOTAL t & # 8221 ; ** setw ( 18 ) ** entire ** N ;//DON & # 8217 ; T FORGET: End product to the screen your name class and subdivision figure here excessively! ! !return ;} //end chief//=====================End Program Bill==========================