Question: I Need help with modifying a C program, Modify the grade book program from code below to use a custom struct to hold the student's

I Need help with modifying a C program,

Modify the grade book program from code below to use a custom struct to hold the student's ID number and the percentage score for each item in the grade book. The program should accept the entry of ID numbers and percentage grades (0100) until the user signals that he or she is done entering grades. The program should then print out the ID numbers and grades entered by the user, sorted by ID number. This needs be format the code properly and provide comments in the C code.

Additionally,

To have a clear picture of what the program should do and the steps in the process for reaching the desired result. can you please writ in plain English what the program needs to do and describe the steps in the process to solve the problem. I would like a clear explanation of the process of solving the problem, not writing C.

Code below to be modified:

#include //declare a max grade count constant of 300 #define MAX_GRADE_COUNT 300

int main(void){ //declare an array called grade as integers int grade[MAX_GRADE_COUNT]; int i; //loop variable int count = 0; char continueResponse; for(i = 0; i < MAX_GRADE_COUNT; i++){ printf("Enter grade (0-100): "); scanf("%d", &grade[i]); count++; printf("Continue entering grades? (Y/N): "); scanf(" %c", &continueResponse); if(continueResponse == 'N'||continueResponse == 'n'){ printf(" == End of Grade Entry == "); break; } }//end of the for loop printf("Grades Entered are: "); for(i = 0; i < count; i++){ //print with padded on the left by using 3 digits wide printf("%3d ", grade[i]); } return 0; }

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!