Question: a. Let's construct a simple class diagram as the detailed architecture of the system. Read the following description and sketch a UML class diagram of
a. Let's construct a simple class diagram as the detailed architecture of the system. Read the following description and sketch a UML class diagram of a university's course registration system.
A lecturer gives one or more courses, and each lecture is given by one single lecturer. The course has a corresponding ID and name. Furthermore, the timeslot and the number of credit points have also to be stored. Some courses are only available during summer or winter term, therefore it is necessary to save in which term the course is usually taught. Additionally, some courses are not taught by the same lecturer in every term. Hence, it is important to capture in which term a lecture or an exercise is given by which lecturer. Lecturers shall also be able to communicate with other lecturers and students.
It is necessary to know the course of study, the student ID, and the first and last name of each student. A student is allowed to register to courses, but does not necessarily have to do so. According to the test registration mentioned above, it is also necessary to save the date of the registration for each course separately due to traceability issues. We have to ensure that every student who is registered to a course is able to attend to the lecture. This is the reason why we have to limit the course registration numbers to 50 students. Furthermore, a lecture is only allowed to take place if at minimum 10 students are registered to it.
In addition, a course can be accompanied by more than one test, but there are also courses without test. Of course, each test has exactly one corresponding course. In contrast to the realization of a lecture, the grading process can be realized by more than one lecturer.
A student can take an exam, but we have to ensure that an test can only be taken if there are at least 10 students registered for the test. In addition, the capacities of the available rooms only allow a maximum of 50 students to take the test at once. Students have to register for test; they can be distinguished by the date and the duration of the test. Each test which is taken by student is graded by a lecturer, and the grades are obviously very important for the students. In addition, the date of test registration has to be saved due to accounting purposes.
The following steps are suggested:
- Identify the objects and class of objects
- Identify the relationship of the classes using examples that you know of.
- Draw the class diagram.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
