Question: Write a Python application that tracks students and courses in a university. The class University must have methods to a) create a course, b) show

Write a Python application that tracks students and courses in a university. The class University must have methods to a) create a course, b) show all courses, c) enroll a student, d) find a student by id number, find a course by course id, and enroll the student in the course, and e) show all students with the courses in which they are enrolled. Student and Course should each have a name and an id number, as well as any methods needed to support the methods required for University. All three classes should have __init__ and __str__ methods.

Write a driver script that creates a few courses and at least two students, enrolls each student in two courses, and lists the students with their courses. The output should be approximately like this:

Joseph Student, id# 1 is enrolled in: Course # 1: English 101 Course # 3: Sociology 303

Josephine Student, id# 2 is enrolled in: Course # 2: Statistics 202 Course # 3: Sociology 303

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!