Question: in java Your program should run for any user input (Hint hint - handle for bad users). However, I also want you to prove you
Your program should run for any user input (Hint hint - handle for bad users). However, I also want you to prove you know how priority queues work. You will submit 3 drawings of what the heap structure looks like after the following calls. ILS stands for injury-severity level. DO NOT GIVE ME A LIST! Add Joe, age 13, ILS 12 Add Adam, age 78, ILS 3 Add Johnny, age 43, ILS 20 Add Melissa, age 40, ILS 17 Add Alice, age 57, ILS 17 Add Brianna, age 15, ILS 10 "First drawing of the heap" Remove next patient to be seen "Second drawing of heap" Remove next patient to be seen Add George, age 34, ILS 2 "Third drawing of heap" Your drawings only need to show the structure of the heaps and the names of the people. The example below is acceptable
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
