Site hosted by Angelfire.com: Build your free website today!

Program #8

Slim

 

 

 

 

 

 

 

 


Write a program that will generate the following bill after a few questions are answered by a customer at Slim’s Auto Service

 

SLIM’S AUTO SERVICE

Customer Name           Vladimir Ulyanov

 

Address                       123 Marxism Lane, Moscow, CCCP (USSR)

 

Phone                           555-3467

 

Make of Car                Porsche Boxter

 

Year                             2003

 

                                    Itemized Service Record

 

Cost of Parts                Labor               Shop Fee         Insurance          Tax

----------------               -------              -----------          -----------         -----

$86.50                         $25.25             $10.00             $16.76             $3.86

 

                        Please pay this amount: $142.37

 

Thank you and have a nice day Vladimir Ulyanov.

 

 

In your program you will input and read from the keyboard ONLY the following:

Name

*address (in one variable)

*phone

*car_type

*year

*parts_cost

*labor_cost

 

Have the shop fee set to a const.

Have the insurance be CALCULATED as 15% of the sum of parts plus shop fee.

Have the total be CALCULATED as the sum of the parts plus labor plus the shop fee.

Please allow for style rules, no messy chubby little programs.

Make sure to insert your program block