Question: void sort _ by _ name ( College a [ ] , unsigned n ) ; void sort _ by _ cost ( College a
void sortbyname College a unsigned ;
void sortbycost College a unsigned ;
void sortbyliving College al unsigned ;
These functions are to sort the first elements of an array of College objects based on names alphabetical order cost descending order and the acceptance rate ascending order You must use three different sorting algorithms for these functions and add a comment at the beginning of the function to clarify which sorting algorithm is being used.
The focus of these functions is sorting. While you might find it helpful to add output statements in these functions to help see intermediate values of local variables, these functions shall not include any output statements when you are ready to capture screenshots of their testing. To demonstrate testing of these functions, you will need to call them along with the display function in the main function.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
