Design something simple like the example below: A short modeling exercise 1. A student can take at least 3 courses and at most 6 courses 2. A course can be given to at least 5 students and to at most 40 students, 3. A course can have other courses as perquisites and other courses that are equivalent to it. (hint: an association is a relationship among instances of classes: It can be among instances of the same class: reflexive association) Example: Student * * CourseSection Student 1 Registration grade * Registration * 1 CourseSection grade
Added by Tony W.
Close
Step 1
Step 1: Create a class for Student with attributes such as student ID, name, and number of courses taken. Show more…
Show all steps
Your feedback will help us improve your experience
Akash M and 63 other Intro Stats / AP Statistics educators are ready to help you.
Ask a new question
Labs
Want to see this concept in action?
Explore this concept interactively to see how it behaves as you change inputs.
Key Concepts
Recommended Videos
Consider the following description of a university where lecturers teach classes and students can enrol in these classes: A lecturer has an ID, name, phone number, email address and office number. A student has an ID, name, phone number, email address. A student also has an average mark and a final mark in his classes. A class has a name and an ID. When a student is enrolled in a class, the marks for this enrolment are recorded. The final mark and current average mark can be obtained from the enrolment. From a student, one can obtain a list of classes he or she is enrolled in. Lecturers teach classes. A lecturer teaches at least one class. From a lecturer, one can obtain a list of classes he or she teaches. Each class has at least one and at most two lecturers. From a class, one can obtain the total number of students enrolled. Draw a UML class diagram for this university. Add attributes and methods when necessary. You do not have to include getters and setters for attributes.
Akash M.
Consider the following simplified description of a university where professors teach courses in which students can enroll. A professor has a name, address, phone number, email address, and grade. A student also has a name, address, phone number, and email address. A course has a name and a number. When a student is enrolled in a course, the marks for this enrollment are recorded and the current average, as well as the final mark (if there is one), can be obtained from the enrollment. From a student, one can obtain a list of courses he or she is enrolled in. Professors teach 2 courses. Each student has at least two and at most four teachers. Draw a class diagram for this university. Add attributes and methods when necessary. You do not have to include getters and setters for attributes. Visibility modifiers (public, private, etc.) are required whenever necessary. Need to give necessary description for each class and attributes. [5]
FACULTY: - FacultyID - First Name - Initials - Last Name - Position - Office - Phone No - Advises STUDENT: - StudentID - First Name - Initials - Last Name - Classification - School - Major - Advises STUDENT ASSOCIATION: - AssociationID - Association Name - Belongs TEACHES HAS COURSE: - CourseID - Name - Department - Credit Hours OFFERING: - Semester - Section - Classroom - Reports OFFICIAL RECORD: - Grade OFFERS
Recommended Textbooks
Elementary Statistics a Step by Step Approach
The Practice of Statistics for AP
Introductory Statistics
Transcript
Watch the video solution with this free unlock.
EMAIL
PASSWORD