Write a program that creates an Instructor class that contains string that represent the first and last
Fantastic news! We've Found the answer you've been seeking!
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 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.
Related Book For
Java An Introduction To Problem Solving And Programming
ISBN: 9780134462035
8th Edition
Authors: Walter Savitch
Posted Date: