Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

I need help writing a program that uses arrays to sort data and print the result

ID: 3529785 • Letter: I

Question

I need help writing a program that uses arrays to sort data and print the results in order from lowest number to highest. The actual question that I'm working on is as follows: Purpose: - Use arrays. Description: ----------- Modify the example select.c from the class examples so that it sorts two parallel arrays. Use the existing array of scores and add a parallel array of floating-point data to track a GPA that corresponds to the score in the other array. Sort and print the set of parallel arrays first by score, highest to lowest, then by GPA, highest to lowest. The inputs will be the number of pairs of entries (n) to be made, followed by n pairs of score & GPA. Ex: -- Please enter number of scores (50 or less): 6 Enter score 1 of 6: 75 Enter gpa 1 of 6: 3.25 Enter score 2 of 6: 42 Enter gpa 2 of 6: 1.55 Enter score 3 of 6: 88 Enter gpa 3 of 6: 3.75 Enter score 4 of 6: 37 Enter gpa 4 of 6: 1.75 Enter score 5 of 6: 99 Enter gpa 5 of 6: 4.0 Enter score 6 of 6: 92 Enter gpa 6 of 6: 3.3 In score order: Score GPA 99 4.00 92 3.30 88 3.75 75 3.25 42 1.55 37 1.75 In GPA order: GPA Score 4.00 99 3.75 88 3.30 92 3.25 75 1.75 37 1.55 42 ----------------------

Explanation / Answer

#include #include void main() { int i,a[11],min,max; clrscr(); printf("Enter Twelve numbers:"); for(i=0;i