+_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...
icon
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
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
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
steps

Step by step

Solved in 2 steps with 1 images

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
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 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)
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
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY