Question: Using Java: Create an array with the size of 10 and assign student details (Name, ID, age and TotalMarks) to the array. Perform the Heap
Using Java:
Create an array with the size of 10 and assign student details (Name, ID, age and TotalMarks) to the array. Perform the Heap Sort to sort the students in ascending order based on their total marks.
Steps:
Create the student list (use Random class in java to generate the age (15- 25) and total (0-100))
Print the Student List in a table format
Perform Heap sort based on the total marks of the students
Print the Student List after the heap sort in a table format
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
