This program should be written in Visual Basic. The TG Automotive repair company performs the following routine maintenance services on passenger automobiles: Oil change - $36.00 Lube job – $28.00...



This program should be written in Visual Basic. The TG Automotive repair company performs the following routine maintenance services on passenger automobiles: Oil change - $36.00 Lube job – $28.00 Radiator flush - $50.00 Transmission flush – $120.00 Inspection - $15.00 Muffler replacement - $200.00 Tire rotation - $20.00 TG Automotive also performs other nonroutine services and charges for parts and labor ($60 per hour). Create an application that displays the total for a customer’s visit to the shop. A sample user interface for the application appears in Figure 6-27. Your source code shoud contain functions, such as the ones listed here, that validate inputs and calculate the various parts of the bill: ‘Verify that the two input values are valid ‘numbers and neither is less than zero. Function ValidateInputs() As Boolean ‘Calculate all oil and lubrication charges. Function CalcOilLubeCharges() As Decimal ‘Calculate radiator and transmission flush charges. Function CalcFlushCharges() As Decimal ‘Calculate inspection, muffler, and tire ‘rotation charges. Function CalcMiscCharges() As Decimal ‘Calculate and display the total of all charges, ‘including labor, parts, and services. Sub CalculateTotalCharges() Also, create procedures, such as the ones listed here, that are called when the user clicks the Clear button: ‘Reset the oil change and lube job check boxes. Sub ClearOilLube() ‘Clear the inspection, muffler replacement, and tire ‘rotation check boxes. SubClearMisc() ‘Clear the parts and labor check boxes. Sub ClearOther()


Nov 11, 2021
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here