Professional Documents
Culture Documents
Lab 10 - Open Ended Lab
Lab 10 - Open Ended Lab
Aim:
Objective: Using the knowledge you have acquired so far, please solve the following problem.
Deliverables: Submit a single file on LMS before the due date as communicated by Lab
Engineer. Please attempt the lab quiz at the defined time.
Note: Write your registration number and name at the top of each code. You will submit your
working codes and outputs (Just Screenshots) in the Lab Report.
Task:
Your task is to design an ecosystem for a university. Define multiple classes for different type of
students (BS, MS), Academic Events (Convocation, Conference) and Departments (Library,
Finance, Exam). The students should receive an invite for convocation or conference only if they
are done with clearance from finance and library and have successfully completed their 4 years
with cgpa of 2.8 or above (for bachelor’s students). The students should receive an invite for
conference if they have completed their degree with cgpa of 3.0 or above and have published a
research paper (for graduating students). Identify Attributes of each class/interface and write
appropriate drive class to test the functionality.
1. Design the required UML diagrams and mark the necessary relationships in between.
2. Implement the system using Java programming language
{
/*
* Check BS Student
*/
// send invite for conference only if
// 1. completed their degree
Boolean isDegreeCompleted = zara.isDegreeComplete();
// 2. cgpa >= 2.8
Boolean cgpaAbove28 = zara.getGPA() >= 2.8;
// 3. cleared from library
Boolean clearedFromLibrary = library.isStudentCleared(zara);
// 4. cleared from finance
Boolean clearedFromFinance = finance.isStudentCleared(zara);
{
/*
* Check MS Student
*/
// send invite for conference only if
// 1. completed their degree
Boolean isDegreeCompleted = ali.isDegreeComplete();
// 2. cgpa >= 3.0
Boolean cgpaAbove3 = ali.getGPA() >= 3.0;
// 3. published research paper
}
}
class Student
{
String name;
int id;
Boolean isDegreeComplete;
public MS(String name, int id, Boolean isDegreeComplete, double gpa, Boolean
hasPublishedPapers)
{
public Department()
{
}
}