☑ Kizspy. me 2.4 [1.5 points] Create delete method to delete a motorbike by its model. It is required
that the characteristics of max heap must be maintained after deleting a motorbike.
3. [1 point] Create heapSort method which utilizes the constructed Max Heap class to
sort the array of the motorbikes in increasing order of engine capacities.
4. A main method to test your implementation with the following tasks:
4.1 [0.5 point] Create an instance of the maxHeap and add the motorbikes to the
maxHeap.
4.2 [0.5 points] Perform a pre-order tranversal and print the list of the motorbikes on the
screen.
4.3 [0.5 points] Delete a motorbike with the model "S1000RR-2023", then perform pre-
order traversal
4.4 [0.5 points] Perform heapSort method with the motorbikes in the maxHeap.
Important:
- Write and submit in two files (PE_SP25_Q1.java and PE SP25_Q2.java); students will
be deducted 1 point if this
requirement is not followed.
- Only Apache NetBeans IDE sofware is permited during examinaton.
Zoom
+100%
Close