Write a program that sorts parcel delivery-using Quicksort with the following requirements: Auto-generate the parcel id randomly. You may use a random function to generate the parcel ids. The parcel...


Write a program that sorts parcel delivery-using Quicksort with the following requirements:<br>Auto-generate the parcel id randomly. You may use a random function to generate the parcel ids.<br>The parcel id takes the form of 999.<br>For each parcel id, the total cost of the delivery should also be auto-generated randomly.<br>The total cost of the delivery will be in the following format $999.99.<br>Sort the orders using Quicksort according to the parcel ids.<br>Display the list of the unsorted parcels and the corresponding total cost of the parcels<br>Display the list of the sorted parcels and the coresponding total cost of the parcels<br>Display the running time of the sorting algorithm.<br>In your program:<br>a. Implement the scenario above using C++ programming language.<br>b. Sample Input <User will input the number of parcel ids, n, to generate and sort><br>Sample Output (Note: i and i must be in the form of a menu option - users can choose this option<br>if they wish to see the details of the parcel id and the delivery cost):<br>i.<br>< time taken to perform the sorting><br>i.<br><all the unsorted parcel ids and the corresponding delivery cost that was generated ><br>111.<br><all the sorted parcel ids and the corresponding delivery cost that was generated><br>

Extracted text: Write a program that sorts parcel delivery-using Quicksort with the following requirements: Auto-generate the parcel id randomly. You may use a random function to generate the parcel ids. The parcel id takes the form of 999. For each parcel id, the total cost of the delivery should also be auto-generated randomly. The total cost of the delivery will be in the following format $999.99. Sort the orders using Quicksort according to the parcel ids. Display the list of the unsorted parcels and the corresponding total cost of the parcels Display the list of the sorted parcels and the coresponding total cost of the parcels Display the running time of the sorting algorithm. In your program: a. Implement the scenario above using C++ programming language. b. Sample Input Sample Output (Note: i and i must be in the form of a menu option - users can choose this option if they wish to see the details of the parcel id and the delivery cost): i. < time="" taken="" to="" perform="" the="" sorting=""> i. 111.

Jun 03, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions ยป

Submit New Assignment

Copy and Paste Your Assignment Here