FACULTY OF SCIENCE AND COMPUTING
DEPARTMENT OF COMPUTING
2025/2026 SEMESTER I EXAMINATIONS, NOV - DEC 2025
YR II
PAPER: OBJECT ORIENTED PROGRAMMING (JAVA)
PAPER CODE: BIT 2104, BCS 2102
INSTRUCTIONS:
1. This is a take home exam
2. Please ensure that you do it in your groups and submission in after six days
3. Attempt all areas of the exam, follow and od according to the instructions
4. You will have to defend the work you have submitted, name the folder with your group
name.
5. Anyone caught cheating is liable to dismissal from the University.
Page 1 of 4
CASE STUDY: Smart Campus Management System (SCMS)
Ndejje University seeks to digitalize its campus operations through a Smart Campus
Management System (SCMS), a desktop-based Java application integrating key academic and
administrative functions.
System Overview:
The SCMS is intended to support the following roles and operations:
1. Students:
o Register and drop courses.
o View grades and fee balances.
o Update profile details.
2. Lecturers:
o Upload grades and attendance.
o View class lists.
o Post announcements.
3. Administrator:
o Manage users (students, lecturers).
o Generate summary reports (e.g., registration, performance).
o Monitor payments and system logs.
The university database is built in MySQL, while the application is implemented in Java using
Object-Oriented Programming principles, JDBC for database connectivity, and JavaFX/Swing
for GUI.
The project must include exception handling, file operations, and demonstrate inheritance,
interfaces, and polymorphism in design.
EXAMINATION TASKS
Question 1: Object-Oriented System Design (25 Marks)
a) Design the class structure of the SCMS using UML (include at least five core classes —
Person, Student, Lecturer, Admin, Course).
b) Implement these classes in Java demonstrating:
Inheritance (e.g., Student and Lecturer extend Person).
Encapsulation (private fields with getters/setters).
Polymorphism (method overriding).
Page 2 of 4
c) Explain in your report how abstraction is achieved in your system.
Deliverables:
UML diagram (in Word or image format)
Java source files for model classes
Explanation (1 page)
Question 2: Application Logic and Exception Handling (25 Marks)
a) Implement a registration feature allowing a student to register for a course.
Validate that the course exists.
Prevent duplicate registrations.
b) Use try–catch–finally or try-with-resources for exception handling in file and database
operations.
c) Create a function to compute and display grades (A–F) based on numeric scores using
conditional and looping structures.
Deliverables:
Java source code ([Link], [Link])
Screenshots showing execution and results
1-page explanation on exception handling used
Question 3: File I/O and GUI (25 Marks)
a) Implement functionality for exporting student registration data to a text or CSV file
b) Design a GUI interface (JavaFX or Swing) for login and course registration.
c) Demonstrate event-driven programming through user actions (buttons, input validation,
etc.).
Deliverables:
GUI code ([Link], [Link])
Output file ([Link] or [Link])
Screenshot of GUI
Short explanation of event-driven logic
Question 4: Database Connectivity and Integration (25 Marks)
Page 3 of 4
a) Create an interface DatabaseOperations with methods connect(), insertData(),
fetchData(), and closeConnection().
b) Implement this interface in a class MySQLDatabase using JDBC.
c) Demonstrate CRUD operations (Create, Read, Update, Delete) for student or course data.
d) Integrate your GUI and database layers to form a functional prototype.
Deliverables:
Database interface and implementation source code
MySQL database schema and backup file
Screenshots of running application connected to DB
Question 5: Project Report and Reflection (Bonus 10 Marks)
Prepare a brief project report (10–15 pages) including:
1. Introduction and system objectives
2. Class diagram and architecture overview
3. Code snippets for key features
4. Challenges faced and solutions
5. Conclusion and recommendations for system improvement
Deliverables:
Word or PDF report
Optional short video demo (max 5 minutes)
Page 4 of 4