+_str_ + add_undergrad(name, email, gpa) Student + add_graduate(name, email, level) |- name : string |- id: string |- email: string + add_course(.) students + remove_student(name) : list + get_students(name, id, email) : list + get_courses(subject, number, title): list + reset id numbering() + get_standing(): string + enroll_student( id, subject, number) + enroll_to(Course) + enrollment_report(): dict str enrolled_to courses- Course UnderGrad Graduate |- subject: string - дра: Пloat - current_level: string - number: int + get_standing(): string + get_standing(): string - title: string str str
+_str_ + add_undergrad(name, email, gpa) Student + add_graduate(name, email, level) |- name : string |- id: string |- email: string + add_course(.) students + remove_student(name) : list + get_students(name, id, email) : list + get_courses(subject, number, title): list + reset id numbering() + get_standing(): string + enroll_student( id, subject, number) + enroll_to(Course) + enrollment_report(): dict str enrolled_to courses- Course UnderGrad Graduate |- subject: string - дра: Пloat - current_level: string - number: int + get_standing(): string + get_standing(): string - title: string str str
Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
Related questions
Question
Need help implenting the classes below in Python 3
Please take a close look at the UML diagram as well as the descriptions of the classes.

Transcribed Image Text:### Class Diagram for University Management System
#### University
- **Attributes:**
- `name: string`
- **Methods:**
- `__str__()`: Returns a string representation.
- `add_undergrad(name, email, gpa)`: Adds an undergraduate student.
- `add_graduate(name, email, level)`: Adds a graduate student.
- `add_course(...)`: Adds a course.
- `remove_student(name): list`: Removes a student.
- `get_students(name, id, email): list`: Retrieves a list of students by name, ID, or email.
- `get_courses(subject, number, title): list`: Retrieves a list of courses.
- `enroll_student(id, subject, number)`: Enrolls a student in a course.
- `enrollment_report(): dict`: Generates an enrollment report.
#### Course
- **Attributes:**
- `subject: string`
- `number: int`
- `title: string`
- **Methods:**
- `__str__()`: Returns a string representation.
#### Student
- **Attributes:**
- `name: string`
- `id: string`
- `email: string`
- **Methods:**
- `reset_id_numbering()`: Resets the ID numbering system.
- `get_standing(): string`: Returns the academic standing.
- `enroll_to(Course)`: Enrolls the student in a course.
- `__str__()`: Returns a string representation.
#### UnderGrad (Inherits from Student)
- **Attributes:**
- `gpa: float`
- **Methods:**
- `get_standing(): string`: Returns the academic standing of an undergraduate student.
- `__str__()`: Returns a string representation.
#### Graduate (Inherits from Student)
- **Attributes:**
- `current_level: string`
- **Methods:**
- `get_standing(): string`: Returns the academic standing of a graduate student.
- `__str__()`: Returns a string representation.
### Relationships:
- **University** has a one-to-many relationship with **Courses** (denoted by 1 to * on the diagram).
- **University** also has a one-to-many relationship with **Students**.
- **Students** have a many-to-many relationship with **Courses

Transcribed Image Text:### Instance Attributes and Properties
- **Protect the data to ensure encapsulation.**
- **Implement properties for all instance attributes unless noted.**
### Student
- Student is an abstract class that represents general students. *Implement it as guided on exercise 10.26 on page 428 in the textbook.*
- Properties are read-only.
- Email data should be validated in the form of "<any text>@ucdenver.edu", and should be all lowercase.
- Add the constructor to initialize all data.
- When a Student user is created, the ID should be generated automatically in sequence. The first student ID should be "000001" and increment by 1 once a new student object is created.
- The `reset_id_numbering` class method should reset the numbering of the IDs, restarting to 1.
- Students can be enrolled in one or more courses, or not enrolled at all. `enroll_to` receives a course object and adds it to the `enrolled_to` list.
### UnderGrad:
- Undergraduate students.
- **GPA should be between 0 and 4**
- **Standing is "Undergraduate"**
- **Add constructor to initialize all data properly**
### Graduate:
- Graduate (master/phd) students
- **Standing is "Master" or "PhD" depending on the current level.**
- **Current level represents either "master" or "phd"**
- **Add constructor to initialize all data properly**
Expert Solution

This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by step
Solved in 2 steps with 1 images

Recommended textbooks for you

Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON

Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science

Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning

Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON

Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science

Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning

Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning

Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education

Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY