Exercise: Auto Repair
Repair Order class has the following attributes.
Customer-> Customer Name- Datatype string
Vehicle -Datatype string
ServiceNames->Has string datatype. This is also a foreign key.
Advisor-Has string as the datatype. The advisor details
OrderStatus-Has a string as the datatype.
Amount- This is the amount for the service.
The class can have the following functions:
addOrder: Use to add orders;
orderCompletion: Use to indicate when a vehicle has been serviced.
totalCost: Use to calculate the total amount for the service.
Cost Class;
The class has the following attributes:
ServiceName: Has the string as the data type and is the primary key of the class.
Number of hours: Total time time taken to service the vehicle
The class can have the following functions:
addNewService- For adding a new vehicle service.
updateCost: Used to update the cost of the service.
Comments
Leave a comment