[Solved]-Python Cra Student Selects Courses Course List Courselist 110 213 315 316 412 121 223 326 Q37163166
PYTHON
In CRA, each student selects courses from a course list:courseList = [110, 213, 315, 316, 412, 121, 223, 326, 328, 422,136, 238, 335, 336, 432, 140, 243, 345, 346, 448, 150, 253, 355,356, 452]
The course prerequisites are given below:
110 > 213 (i.e., 110 is the prerequisite for 213)
316 > 412
223 > 326
328 > 422
136 > 238
243 > 345
253 > 355
356 > 452
In this programming assignment, you need do thefollowing:
• Define a Person class
• Define a Student class inherited from Person
• Define an Advisor class inherited from Person
• Create 8 Student instances based on the student list: stuList= [‘alice’, ‘bob’, ‘cindy’, ‘david’, ‘ellen’, ‘frank’, ‘grace’,‘hellen’]
• For each created student instance, you need to randomly selectthree non-400 level, no prerequisite courses to add to thefinishedCourses (see Python class description below) list.
• Each student need randomly select three courses from thecourseList.
o For each selected course, the student need make sure thecourse not taken yet
o Then the student submits the selected course to the advisorfor approval. The advisor will check if the student has met theprerequisite requirement for the selected course.
If a selected course not approved, the student needs to chooseanother one from the courseList instead
• Print a report (and take a screenshot) for allstudents includes:
o The name
o The finished courses
o The approved selected courses
In CRA, you need define three Python classes: Person,Student, and Advisor. Both the Student and Advisor classes inheritfrom Person class. The following provides some basic requirementsof the three classes. You can add any additional fields and methodsto each class as needed.
Person class includes:
– Instance variables:
name – String
– Instance methods:
getName()
Student(Person) class includes:
– Instance variables:
stuID – String
finishedCourses – List
selectedCourses – List
– Instance methods:
getStuID()
getSelectedCourse()
sendCourseRegistrationRequest()
updateSelectedCourse()
Advisor(Person) class includes:
– Instance methods:
approveSelectedCourse ()
(You are free to add more methods/fields and use any number ofparameters for the methods as needed)
Expert Answer
Answer to PYTHON In CRA, each student selects courses from a course list: courseList = [110, 213, 315, 316, 412, 121, 223, 326, 32… . . .
OR

