+_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.
![University
- name : string
+_str_
+ add_undergrad(name, email, gpa)
Student
+ add_graduate(name, email, level)
- name : string
+ add_course(.)
- id: string
students
+ remove_student(name) : list
|- email: string
+ get_students(name, id, email) : list
+ reset id numbering()
+ get_courses(subject, number, title): list
+ get_standing(): string
+ enroll_student( id, subject, number)
+ enroll_to(Course)
+ enrollment_report(): dict
+_str
enrolled_to
courses
1
Course
UnderGrad
Graduate
- subject: string
- current_level: string
gpa: float
- number: int
+ get_standing(): string
+ get_standing(): string
- title: string
sr.
+
str
+
str](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2F1d722143-f111-402d-9194-370f4c36bfd7%2F6d15f1ab-fe12-43f7-a2f4-97eeabc15cce%2Fy77qliq_processed.png&w=3840&q=75)
Transcribed Image Text:University
- name : string
+_str_
+ add_undergrad(name, email, gpa)
Student
+ add_graduate(name, email, level)
- name : string
+ add_course(.)
- id: string
students
+ remove_student(name) : list
|- email: string
+ get_students(name, id, email) : list
+ reset id numbering()
+ get_courses(subject, number, title): list
+ get_standing(): string
+ enroll_student( id, subject, number)
+ enroll_to(Course)
+ enrollment_report(): dict
+_str
enrolled_to
courses
1
Course
UnderGrad
Graduate
- subject: string
- current_level: string
gpa: float
- number: int
+ get_standing(): string
+ get_standing(): string
- title: string
sr.
+
str
+
str
![• Instance Attributes and Properties
• Protect the data to ensure encapsulation.
• Implement properties for al 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 on 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 fırst 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 to one or more courses, or not enrolled at all. enroll_to receives a course object and add 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 lever represents either "master" or "phd"
· Add constructor to initialize all data properly](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2F1d722143-f111-402d-9194-370f4c36bfd7%2F6d15f1ab-fe12-43f7-a2f4-97eeabc15cce%2Fhv4y5pa_processed.png&w=3840&q=75)
Transcribed Image Text:• Instance Attributes and Properties
• Protect the data to ensure encapsulation.
• Implement properties for al 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 on 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 fırst 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 to one or more courses, or not enrolled at all. enroll_to receives a course object and add 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 lever represents either "master" or "phd"
· Add constructor to initialize all data properly
Expert Solution
![](/static/compass_v2/shared-icons/check-mark.png)
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
![Blurred answer](/static/compass_v2/solution-images/blurred-answer.jpg)
Recommended textbooks for you
![Computer Networking: A Top-Down Approach (7th Edi…](https://www.bartleby.com/isbn_cover_images/9780133594140/9780133594140_smallCoverImage.gif)
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…](https://www.bartleby.com/isbn_cover_images/9780124077263/9780124077263_smallCoverImage.gif)
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)](https://www.bartleby.com/isbn_cover_images/9781337569330/9781337569330_smallCoverImage.gif)
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…](https://www.bartleby.com/isbn_cover_images/9780133594140/9780133594140_smallCoverImage.gif)
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…](https://www.bartleby.com/isbn_cover_images/9780124077263/9780124077263_smallCoverImage.gif)
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)](https://www.bartleby.com/isbn_cover_images/9781337569330/9781337569330_smallCoverImage.gif)
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](https://www.bartleby.com/isbn_cover_images/9781337093422/9781337093422_smallCoverImage.gif)
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
![Prelude to Programming](https://www.bartleby.com/isbn_cover_images/9780133750423/9780133750423_smallCoverImage.jpg)
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
![Sc Business Data Communications and Networking, T…](https://www.bartleby.com/isbn_cover_images/9781119368830/9781119368830_smallCoverImage.gif)
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY