Case Study 1 OOP

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 10

POLYTECHNIC SULTAN MIZAN ZAINAL ABIDIN

DEPARTMENT OF INFORMATION AND COMMUNICATION TECHNOLOGY

DFC30243
OBJECT ORIENTED PROGRAMMING
TOPIC CHAPTER 3

ASSESMENT CASE STUDY 1

NAME NUR FARAH AQILAH BINTI NORAZAM


DANIAL IZZUDDIN BIN MOHD SHAHIR
NUR ARIESYA SYAFIKA BINTI ABDULLAH
REG NO 13DDT22F1139
13DDT22F1124
13DDT22F1176
PROGRAMME DDT3S2

INSTRUCTIONS:

1. Answer ALL the questions


2. Submit the assessment on

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.

CHAPTER 3: CLASSES AND OBJECTS

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:

a. Kindergarten Management System.


b. Employee Salary Calculation System.
c. Hotel Reservation System.
d. Inventory Management System
e. Car Rental Management System
f. Maybank Personal Loan System
g. Student Outing Record System
h. Primary School Registration System
i. Homestay Booking System
j. Fitness Calculator
k. Shape Calculator
l. Clinic Management System
m. Complaint Management System

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:

i. Object Oriented Analysis:


Define data abstraction for object or class (define at least 3 classes).
ii. Object Oriented O Design:
Design UML class diagram for each class (at least 3 classes)
Car Rental Management System.

a) Data abstraction for class.

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

PROGRAMMING RUBRIC CASE STUDY 1 (20

MARKS)

Superior Excellent Good Poor Standard Weightage Score


CRITERIA Mark (W) ((S/4) X W )
4 3 2 1 (S)
OO Analysis: Student able to Student able to Student able to Student able to 6
Define data define data define data define data list one class only
abstraction for abstraction for at abstraction for abstraction least
class. least 3 classes least 3 classes with 3 classes with
correctly minor error major error
Data and Student able to Student able to list Student able to No data and 5
Method list data and data and method list data and method listed in
method correctly with minor error method with class.
major error
OO Design: Student able to Student able to Student able to Student able to 9
Design UML design class design class design class design one class
class diagram diagram for each diagram for each diagram for each only.
for each class. class correctly class with minor class with major
error error
TOTAL (20 MARKS)

You might also like