Question: Information about students enrolled for a given course must be stored. The information that must be stored for each student includes the student ID, surname,
Information about students enrolled for a given course must be stored. The information that must be stored for each student includes the student ID, surname, other names, and marks in each of 5 subjects. 1.Write a program that reads in students details and builds up two BSTs: i. A BST that displays student details in ascending order of student ID when traversed using in-order traversal. ii. A BST that displays student details in descending order of total marks in the 5 subjects when traversed using in-order traversal. However, since total marks may not be unique, a second criterion may be used when marks are equal, e.g. order in which data was entered. Your program must also display the rank of the students. Your program must allow the user to choose any of the following options: i.Add new student details. ii. Display students details in ascending order of student ID. iii. Display students details in descending order of rank. iv. Display students details using pre-order traversal on both BSTs. v. Search for a student by student ID and display all details of that student. vi. Search for a student by his/her rank and display all details of that student.
The program must be written in java.Thanks
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
