Question: Write a program that creates an Instructor class that contains string that represent the first and last name of the teacher and the number of
Write a program that creates an Instructor class that contains string that represent the first and last name of the teacher and the number of courses the instructor teaches. You will need to create a queue class that will store each person in the queue and can sort the queue based on last name or the number of courses teaching.
Prompt the user of the program to add five instructors to the queue. Your program should provide the contents of the queue and then sort the queue using quick sort in two ways:
- Descending order by last name.
- Descending order by number of courses teaching.
Step by Step Solution
There are 3 Steps involved in it
Certainly Below is an example Python program that demonstrates the described functionality using an ... View full answer
Get step-by-step solutions from verified subject matter experts
