Question: Object Practice creating user defined data types Problem Create a class to keep track of the service quote at a mechanic shop. At a mechanic
Object
Practice creating user defined data types
Problem
Create a class to keep track of the service quote at a mechanic shop. At a mechanic shop each part has a price, replacing or fixing each part has a labor cost. The total cost for the customer depends on the part, labor cost and the coupon they might have. Following is an example of what this class is supposed to do:
Welcome to Midas mechanic shop
Summary of charges
Parts: clutch
parts charge:
Labor charge:
Discount: &
discount amount:
Total:
Total after discount:
Class ServiceQuote
Instance Variables:
All the instance variables must be declared private
name: holds the name of the shop String
partCharge: holds the price of each partdouble
laborCharge: holds the labor chargedouble
part: holds the name of the partString
coupon: holds the coupon amountdouble
Methods
Refer to the provided shell
Output
Refer to the provided file
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
