It is assumed that you need to design the software for Fine Management System fo
ID: 3915630 • Letter: I
Question
It is assumed that you need to design the software for Fine Management System for Road and Transport Authority. As the part of the assignment you need to design the set of classes used for the IS tool. Apply your thought and design the set of classes. Every driver is registered with Road and Transport Authority and the fine system is based on the number plate of the vehicle. If the driver commits ant mistake while driving, the mistake gets registered with the system. Based on the mistake conducted, the fine amount is picked up from the system and is updated with the registration number of the driver. The system then sends SMS to the driver of the fine amount and last date of the amount payment.
Explanation / Answer
For the above we can divide into three types :
i) Driver Class:- (Details of every registered driver)
Attributes:- int driverId,
String driverName,
String vehicleNo,
String vehicleType,
String address,
Methods:- Driver() //constructor
payFine() //pay fine (NOTE:-additional method)
ii) MistakeList Class:-
Attributes:- int mistakeId,
String mistakeDescription,
int fineAmount,
Methods:- calculateFine(mistakeId) //calculate fine according to mistake
iii) Authority Class:- (System that controls the software)
Attributes:-String mistake,
int fine,
date DueDate,
Methods:- registerDriver() //register driver to System ,
registerMistake() //register mistake to driverId ,
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.