Question: C program sort data function void sort_data(int *,double *,char *, int): int * - Integer pointer holding all the valid account IDs double * -
C program sort data function
void sort_data(int *,double *,char *, int):
int * - Integer pointer holding all the valid account IDs double * - Double pointer holding all the corresponding valid amounts char * - Character pointer holding all the corresponding valid designations int count of the number of valid records (remember this cannot be 13 anymore)
Now, you need to group them based on the designations, the first group must have the Juniors (J) and then the second group must have the Seniors (S) and the last group must be the Masters(M). Remember you are not sorting anything in ascending or descending order, you are group sorting them. When you swap the positions of designations while grouping, make sure the account IDs and the amounts match too after the grouping.
Here is the data that needs to be sorted:
Accounts Amounts Designation
1001 1591.63 M
2002 2000.43 M
2112 3112.67 M
3003 4000.00 S
4004 5000.00 S
5005 3000.00 J
6116 4599.91 S
7007 2890.58 J
****************************************************
I need help sorting this data properly
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
