Question: Help !! homework in java Q1. [15 pts] Write a java program that sorts the following sequence in ascending order using in-place heap-sort algorithm. 10

Help !! homework in java  Help !! homework in java Q1. [15 pts] Write a java
program that sorts the following sequence in ascending order using in-place heap-sort

Q1. [15 pts] Write a java program that sorts the following sequence in ascending order using in-place heap-sort algorithm. 10 6 15 12 13 17 16 L5 Q2. [25 pts] An airline company uses the formula shown below to determine the priority of passengers on the waiting list for overbooked flights. priority number (A 1000) B C where A is the customers total mileage in the past year B is the number of years in his or her frequent flier program C is a sequence number representing the customers arrival position when he or she booked the flight Given the information of overbooked customers as shown in the following table, write a java program that reads the customers information and determines each customers priority number. The program then builds a priority queue using the priority number and prints a list of waiting customers in priority sequence. Year Name Mileage Sequence 53,000 Bryan Devour 89,000 Amanda Trapp 93,000 Boclan Nguyen 17,000 Sarah Hong

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!