Question: Program in C need help with sorting by groups void sort_data(int *,double *,char *, int): int * - Integer pointer holding all the valid account

Program in C

need help with sorting by groups

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.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!