Java Assignment 3
Question 1: Design a College ERP (Student Module)
Requirements:
● Each student has:
○ Roll number, name
i
○ Marks in multiple subjects
ba
○ Contact details (phone, email)
● System should:
○ Store multiple students
○ Calculate total & average marks
um
○ Track total students admitted
● Support:
○ Flexible average calculation
● Display formatted student report
M
Question 2: Design a Fleet Management System
Requirements:
AC
● Base class: Vehicle
● Derived classes: Car, Bike
● System should:
○ Track brand & speed
○ Store fuel type / mileage
-D
● Use:
○ Static block → system initialization
○ Non-static block → object creation log
● Allow:
C
○ Updating vehicle speed
● Display vehicle details
Question 3: Design a Banking System
Requirements:
Each account has:
● Account number, holder name
● Balance
System should:
i
● Store multiple accounts
ba
● Deposit & withdraw money
● Prevent withdrawal if balance is insufficient
● Track total number of accounts
um
Support:
● Overloaded methods for deposit (cash / online)
Display:
M
● Account details with updated balance
AC
Question 4: Design a Hospital Management System
Requirements:
Each patient has:
-D
● Patient ID, name, age
● Disease
● Contact details
C
System should:
● Store multiple patients
● Identify senior citizens (age ≥ 60)
● Count total patients
Support:
● Use object composition (Patient → ContactDetails)
Display:
● Patient details with status
Question 5: Design a Product Inventory System
Requirements:
i
Each product has:
ba
● Product ID, name
● Price, quantity
um
System should:
● Store multiple products
● Calculate total inventory value
● Update stock quantity
M
Support:
● Use constructor for initialization
● Use method overloading for price update (discount / direct update)
AC
Display:
● Product details and stock value
-D
Question 6: Design a Library Management System
Requirements:
C
Each book has:
● Book ID, title, author
● Availability status
System should:
● Store multiple books
● Issue and return books
● Prevent issuing unavailable books
Support:
● Track total books
Display:
● Available and issued books
i
ba
Question 7: Design an Employee Management System
Requirements:
um
Each employee has:
● Employee ID, name
● Salary
M
System should:
● Store multiple employees
● Calculate salary with allowances
● Track total employees
AC
Support:
● Use method overloading for salary calculation
Display:
-D
● Employee salary details
C
Question 8: Design an Online Order System
Requirements:
Each order has:
● Order ID, customer name
● Items and price
System should:
● Store multiple orders
● Calculate total bill
● Apply GST
Support:
● Use array for multiple items
● Use constructor for initialization
i
Display:
ba
● Final bill with details
um
Question 9: Design a Course Management System
Requirements:
M
Each course has:
● Course ID, course name
● Fees
AC
Each student:
● Can enroll in courses
System should:
-D
● Store students and courses
● Track enrollments
● Count total courses
C
Display:
● Student course details
Question 10: Design a Transport Ticket System
Requirements:
Each ticket has:
● Ticket ID, passenger name
● Source, destination
● Fare
i
System should:
ba
● Store multiple bookings
● Calculate total fare
● Update fare
um
Display:
● Ticket details
M
AC
-D
C