Joe\'s Automotive performs the following routine maintenance services: Oil chang
ID: 3631708 • Letter: J
Question
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
Muffer replacement - $100.00
Tire rotation - $20.00
Joe also performs other non routine services and charges for parts and labor ($20 per hour). Create an application that displays the total for a customers visit to Joes . The form should resemble the one shown below only with the modifications listed at the bottom.
The application should have the following functions:
OilLubeCharges: returns the total charges for an oil change and/or lube job, if any.
FlushCharges: returns the total charges for a radiator flush and/or 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.
Total Charges: 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.
Clear Other: Clears the text boxes for parts for parts and labor.
ClearFees: Clears the labels that display the labels in the section marked Summary.
Except make the following changes:
Do not verify input but instead assume input is correct -- use CDec. Parts input is a decimal amount, Labor input is number of hours -- decimal (the $ on the form is incorrect)
Add 3 labels for the total oil and lube charges, total flushes charges and total misc charges.
Replace the Summary group box with the following:
Total Oil and Lube Charges
Total Flushes Charges
Total Misc Charges
Total Parts and Labor Charges
Tax on Parts Charges
Total Charges
Implement the functions and procedures as described with the following change:
For the OtherCharges function, add the labor rate as a parameter.
Thanks in advance for any help.