Homework #3 Solution

$30.00 $24.00

Write a program that produces a bill for a repair service, using the following charge formula: • The bill includes subtotal, and tax charge. • The subtotal is the larger of the repair charge or $95. • The repair charge is the sum of parts cost and labor charge. • The labor charge is $1.50…

5/5 – (2 votes)

You’ll get a: zip file solution

 

Description

5/5 – (2 votes)

Write a program that produces a bill for a repair service, using the following charge formula:
• The bill includes subtotal, and tax charge.
• The subtotal is the larger of the repair charge or $95.
• The repair charge is the sum of parts cost and labor charge.
• The labor charge is $1.50 for each minute of labor needed for the repair.
• The tax charge is 8.25% of the subtotal.
Your program should input the parts cost and the minutes of labor for the repair. It should exit with a reasonable error message if any of the input is inappropriate. Otherwise, it should output the final bill. The executable program Gold03.exe demonstrates what your program should do.
Note: Do not do math “in your head”! Use the non-example values I gave above (they will be constants), and program calculations from those.
You should turn in (in a pocket folder): this assignment/grading sheet (write your name in the space below), your statement of completeness, a structure chart of your program (matching your “outline” comments), and a full printout of your program. All documents should be appropriately labeled. You should also place a “soft” (electronic) copy of your main.cpp file (in a properly named folder) into the private folder of your FTP site.

Homework #3 Solution
$30.00 $24.00