CIS 1033 - Fundamentals of Programming

Bob Comer, Professor, CIS/CSC


Programming Assignment 2 - Auto Repair Invoice

Due Wednesday, 6/9

This is basically program 3 on page 101 of your textbook. Write a C++ program to print out a customer bill for Armadillo Automotive. The parts and labor charges should be input from the keyboard. A 8.25% sales tax is charged on parts but not on labor. Be sure that your output lines up as shown in the example output below.

Data 

Constant

Value

TAX_RATE

0.0825

 

Variable

Source

partsCost

input from keyboard

laborCost

input from keyboard

salesTax

product of parts cost and tax rate

totalCost

sum of parts cost, labor cost, and sales tax

 

Output
Your output should look like the example below. User input is shown in bold.
 

Enter Parts cost: 104.50
Enter Labor cost: 182.15

   Armadillo Automotive
      Service Invoice

Parts              104.50
Labor              182.15
Sales Tax            8.62
Total              295.27


Return to C++ Home Page

Copyright: Ó1999 by the Austin Community College

Department of Computer Studies. All rights reserved.

Comments to: Bob Comer

Last updated: June 1, 1999