Menu

[Solved]Python Programming Assignment Need Use Oop Develop Course Registration Application Cra All Q37081482

PYTHON-

In this programming assignment, you need use OOP to develop aCourse Registration application (CRA) toallow students register courses.

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 the following:

  • 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, noprerequisite courses to add to the finishedCourses (seePython class description below) list.
  • Each student need randomly select threecourses from the courseList.
    • For each selected course, the student need make sure the coursenot taken yet
    • Then the student submits the selected course to the advisor forapproval. 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:
    • The name
    • The finished courses
    • The approved selected courses

Python class description:

In CRA, you need define three Python classes: Person, Student,and Advisor. Both the Student and Advisor classes inherit fromPerson class. The following provides some basic requirements of thethree classes. You can add any additional fields and methods toeach 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 this programming assignment, you need use OOP to develop a Course Registration application (CRA) to allow stu… . . .

OR


Leave a Reply

Your email address will not be published. Required fields are marked *