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: 700.0
Labor charge: 500.0
Discount: 15.0 &
discount amount: 180.0
Total: 1200.0
Total after discount: 1020.0
```
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 part(double)
laborCharge: holds the labor charge(double)
part: holds the name of the part(String)
coupon: holds the coupon amount(double)
```
Methods
Refer to the provided shell
Output
Refer to the provided file
Object Practice creating user defined data types

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!