Assignment# 2: Riphah International University
Assignment# 2: Riphah International University
Assignment# 2
Submission Date: 15th April 2021
Question 1 [5+5 = 10 marks]: Consider five classes i.e. Professor, Researcher, Department, Laboratory,
and University having following specifications.
Class University has
Two attributes of type string i.e. universityName and location
An attribute named dept of type Department
Question 2 [20 marks]: Draw UML Class Diagram for the following case study, Students
with odd sapid will also implement this case study:
You as a developer is requested to create a simple console-based application for teachers to
create quizzes for the students. Teacher just want to manage his/her quizzes and questions.
System should provide the functionality to add new quiz and then add some questions to
that quiz. All the questions would be MCQs. For each question, Teacher will store the
question number, question details, options of the question and the right option.
System should provide the functionality to manage all the quizzes, i.e., to view the quizzes,
to modify a quiz, to delete a quiz, print a quiz to PDF or Word file without the correct
answers.
Viewing a quiz means, view quiz details i.e., quiz created date, and number of questions.
User should also be able to view the questions in the quiz.
Modifying a quiz means, Modify quiz details i.e., quiz title, quiz date, etc.,. It also means that
user can add or delete questions in the quiz.
Deleting a quiz means, the quiz along with all the question inside it will be deleted.
Question 3 [20 marks]: Draw UML Class Diagram for the following case study, Students
with even sapid will also implement this case study:
You as a developer is requested to create a simple console-based application for teachers to
create quizzes for the students. Teacher just want to manage his/her quizzes and questions.
System should provide the functionality to add new quiz and then add some questions to
that quiz from the question bank. All the questions would be MCQs. For each question,
Teacher will store the question number, question details, options of the question and the
right option.
System should provide the functionality to manage all the questions in a question-bank, i.e.,
to view the questions, to modify a question, to delete a question.
System should also provide the functionality to manage all the quizzes, i.e., to view the
quizzes, to modify a quiz, to delete a quiz, print a quiz to PDF or Word file without the
correct answers.
Viewing a quiz means, view quiz details i.e., quiz created date, and number of questions.
User should also be able to view the questions in the quiz.
Modifying a quiz means, Modify quiz details i.e., quiz title, quiz date, etc.,. It also means that
user can add or delete questions in the quiz from the question bank.
Deleting a quiz means, the quiz along with all the question inside it will be deleted.
_________________________END_____________________________