Problem

Joe’s AutomotiveJoe’s Automotive performs the following routine maintenance services:• Oil...

Joe’s Automotive

Joe’s Automotive performs the following routine maintenance services:

• Oil change—$26.00

• Lube job—$18.00

• Radiator flush—$30.00

• Transmission flush—$80.00

• Inspection—$15.00

• Muffler replacement—$100.00

• Tire rotation—$20.00

Joe also performs other nonroutine services and charges for parts and labor ($20 per hour). Create an application that displays the total for a customer’s visit to Joe’s. The form should resemble the one shown in Figure 1. Mote: Visual Studio lets you use an apostrophe in a project’s name, but the apostrophe will prevent you from being able to run the project after it has been created.

Figure 1 Joe’s Automotive form

The application should have the following functions:

OilLubeCharges  Returns the total charges for an oil change and/or a lube job, if any.

FlushCharges  Returns the total charges for a radiator flush and/or a transmission flush, if any.

MiscCharges  Returns the total charges for an inspection, muffler replacement, and/or a tire rotation, if any.

OtherCharges  Returns the total charges for other services (parts and labor), if any.

TaxCharges  Returns the amount of sales tax, if any. Sales tax is 6%, and is only charged on parts. If the customer purchased services only, no sales tax is charged.

TotalCharges  Returns the total charges.

The application should have the following procedures, called when the user clicks the Clear button:

ClearOilLube  Clears the check boxes for oil change and lube job. ClearFlushes Clears the check boxes for radiator flush and transmission flush.

ClearMisc  Clears the check boxes for inspection, muffler replacement, and tire rotation.

ClearOther  Clears the text boxes for parts and labor.

ClearFees  Clears the labels that display the labels in the section marked Summary.

Input validation: Do not accept negative amounts for parts and labor charges.

Step-by-Step Solution

Request Professional Solution

Request Solution!

We need at least 10 more requests to produce the solution.

0 / 10 have requested this problem solution

The more requests, the faster the answer.

Request! (Login Required)


All students who have requested the solution will be notified once they are available.
Add your Solution
Textbook Solutions and Answers Search
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT