Case Study 1 OOP
Case Study 1 OOP
Case Study 1 OOP
DFC30243
OBJECT ORIENTED PROGRAMMING
TOPIC CHAPTER 3
INSTRUCTIONS:
MARKING SCHEME
CLO 2 PLO 6 / 20
TOTAL / 20
THE ENTIRE QUESTION IS BASED ON JTMK’S QUESTION BANK APPROVED BY PROGRAMME LEADER.
SIGNATURE IS NOT REQUIRED.
Question
PROBLEM STATEMENT
You are the programmer of the Famous IT Corporation that provide new idea to overcome
the problem. There are some requests from customer to solve the problem using Java coding
such as:
Based on a problem statement given above, students in 3 members are required to choose
ONE (1) problem to solve based on Object Oriented Analysis and Design (OOAD) and consider
the following:
Cars Class
car_id
car_number
car_company
car_type
car_description
addCars()
editCars()
deleteCars()
updateCars()
saveCars()
searchCars()
Booking Class
booking_id
booking_type
booking_date
booking_timing
booking_description
addBooking()
editBooking()
deleteBooking()
updateBooking()
saveBooking()
searchBooking()
Driver Class
driver_id
driver_name
driver_mobile
driver_email
driver_username
driver_password
driver_licence
driver_address
addDriver()
editDriver()
deleteDriver()
searchDriver()
Passanger Class
passanger_id
passanger_name
passanger_mobile
passanger_email
passanger_username
passanger_password
passanger_address
addPassanger()
editPassanger()
deletePassanger()
searchPassanger()
Transaction Class
receipt_no
reference
car_id
driver_id
driver_name
amount
addTransaction()
editTransaction()
deleteTransaction()
searchTransaction()
b) UML class diagram for each class.
Cars Class
Car_id (int)
Car_number (int)
Car_company
(string)
Car_type (string)
Car_description
(string)
addCars()
editCars()
deleteCars()
updateCars()
saveCars()
searchCars()
Driver Class
driver_id (int)
driver_name (string)
driver_mobile (int)
driver_email (string)
driver_username (string)
driver_password (string)
driver_license (string)
driver_address (string)
addDriver()
editDriver()
deleteDriver()
searchDriver()
Transaction Class
receipt_no (int)
reference (string)
car_id (string)
driver_id (string)
driver_name (string)
amount (double)
addTransaction()
editTransaction()
deleteTransaction()
searchTransaction()
Booking Class
booking_id (string)
booking_type
(string)
booking_date (int)
booking_timing
(double)
booking_description
(string)
addBooking()
editBooking()
deleteBooking()
updateBooking()
saveBooking()
searchBooking()
Passenger Class
passenger_id (string)
passenger_name
(string)
passenger_mobile (int)
passenger_email
(string)
passenger_username
(string)
passenger_password
(string)
passenger_address
(string)
addPassenger()
editPassenger()
deletePassenger()
searchPassenger()
1
1
1
1
1
1 1 1 M
DFC30243 OBJECT ORIENTED
MARKS)