Question: C PROGRAMMING ONLY Problem 2: Read Class Data from a File and Sort (30 points) The file ClassData10.txt contains grade information for 10 fictitious students.

C PROGRAMMING ONLY
 C PROGRAMMING ONLY Problem 2: Read Class Data from a File
and Sort (30 points) The file ClassData10.txt contains grade information for 10

Problem 2: Read Class Data from a File and Sort (30 points) The file ClassData10.txt contains grade information for 10 fictitious students. The file format is Student Name 12 Reading Assignment Scores 8 Hoework Scores . Scores for in-class participation, midterm 1, midterm 2, and the final project Using a linked list, write a C program that 1. Reads the file information into a 10 element array of type student.info. Make sure you update the stracture student info from problem 1 to accept 12 reading assignments and 8 homework scores. 2. Calculates the final grades for all 10 students. .Print the final scores in order, from highest to lowest. The following functions will sort an array of type int. Modify these functions to use variables of type student,info void selection(int 11int size) / selection so int int min min i: start searching from currently unsorted if (x1j? >x(min) } // ?f found a $?alle @lement min-: / move it to the front swap (x111xImini void awap (int xint y I int tenp tenp y -tenp Sample Code Execution: Red text indicates information entered by the user for Saral Grade info Zybooks Scores- t9, 2,5,6, 3, 8, 9 8.3. 1, 10, 1 Honevork Scores [93, 95, 95, 92, 94, 96, 92, 94) In-claas Participation Score94 Midters Scores-[95, 98) Final Project Score- 93 Calculated Percestage- 91.23 The Final Grade for Sarah is A Grade infornatios for Lily Zybooks Scores-(0, , 10,7, 6. 8.0, 10, 5, 4,7. 4 Honeuork Scores (87. 85, 100, 89, 81. 88, 83, 84) In-class Participation Score95 Midters Scores[s9, 90) Final Project Scere98 Calculated Percestage-89.74 The Final Grade for Lily is B Grade inforratios fer David Zybooks Scores t. 4. 10, 5. 6. 10. 8.1, 2. 2. 9.4 Honevork Scores- [82, 78, 96, 93, 84, 86, 85, 100) In-class Participatien Score90 Midterm Scores . [94, 91) Final Project Seere98 Calculated Perceatage-88.98 The Final Grade for David is B Grade infornatios for Sydney Zybooks Score@-(9. 2,4,10. 2. 5. 8, 7, 3. 6. 10. ?] Honevork Scores [72. 82, 100, 82. 80. 88. 95, 33] In-class Participation Score96 Midtern Scores [96. 93) Problem 2: Read Class Data from a File and Sort (30 points) The file ClassData10.txt contains grade information for 10 fictitious students. The file format is Student Name 12 Reading Assignment Scores 8 Hoework Scores . Scores for in-class participation, midterm 1, midterm 2, and the final project Using a linked list, write a C program that 1. Reads the file information into a 10 element array of type student.info. Make sure you update the stracture student info from problem 1 to accept 12 reading assignments and 8 homework scores. 2. Calculates the final grades for all 10 students. .Print the final scores in order, from highest to lowest. The following functions will sort an array of type int. Modify these functions to use variables of type student,info void selection(int 11int size) / selection so int int min min i: start searching from currently unsorted if (x1j? >x(min) } // ?f found a $?alle @lement min-: / move it to the front swap (x111xImini void awap (int xint y I int tenp tenp y -tenp Sample Code Execution: Red text indicates information entered by the user for Saral Grade info Zybooks Scores- t9, 2,5,6, 3, 8, 9 8.3. 1, 10, 1 Honevork Scores [93, 95, 95, 92, 94, 96, 92, 94) In-claas Participation Score94 Midters Scores-[95, 98) Final Project Score- 93 Calculated Percestage- 91.23 The Final Grade for Sarah is A Grade infornatios for Lily Zybooks Scores-(0, , 10,7, 6. 8.0, 10, 5, 4,7. 4 Honeuork Scores (87. 85, 100, 89, 81. 88, 83, 84) In-class Participation Score95 Midters Scores[s9, 90) Final Project Scere98 Calculated Percestage-89.74 The Final Grade for Lily is B Grade inforratios fer David Zybooks Scores t. 4. 10, 5. 6. 10. 8.1, 2. 2. 9.4 Honevork Scores- [82, 78, 96, 93, 84, 86, 85, 100) In-class Participatien Score90 Midterm Scores . [94, 91) Final Project Seere98 Calculated Perceatage-88.98 The Final Grade for David is B Grade infornatios for Sydney Zybooks Score@-(9. 2,4,10. 2. 5. 8, 7, 3. 6. 10. ?] Honevork Scores [72. 82, 100, 82. 80. 88. 95, 33] In-class Participation Score96 Midtern Scores [96. 93)

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!