Question: Please correct this C coding program. I know their are errors, becuase nothing prints. The instructions are below, and my code is below that. Thanks.

Please correct this C coding program. I know their are errors, becuase nothing prints. The instructions are below, and my code is below that. Thanks.Please correct this C coding program. I know their are errors, becuase

Correct this code please:

#include

int main(){

int m,n,i,j,k,p,q;

printf("Hom many students? ");

scanf("%d",&m);

printf("How many assignments? ");

scanf("%d",&n);

//student names

char student_name[5][25];

for(i=0;i

{

printf("Enter name for Student %d: ",i);

scanf(" %[^ ]",student_name[i]);

}

//grades

for(j=0;j

{

char student_grade[5][25];

for(k=0;k

{

printf("Enter grade for Assignment %d for %s: ",j,student_name[k]);

scanf(" %[^ ]",&student_grade[j]);

}

}

//final grades

for(i=0;i

{

char student_finalgrade[5][25];

printf("Enter final grade for Student %d: ",i);

scanf(" %[^ ]",&student_finalgrade[i]);

}

//printFinalgrades

for(k=0;k

{

printf("%s\t",student_name[k]);

}

printf(" ");

for(q=0;q

{

for(p=0;p

{

char student_grade[5][25];

printf("%s",student_grade[i]);

}

printf(" ");

}

for(i=0;i

{

char student_finalgrade[5][25];

printf("%s\t",student_finalgrade[i]);

}

}

nothing prints. The instructions are below, and my code is below that.

You will be creating a program to help a teacher calculate final grades for a class. The program will calculate a final letter grade base on a standard 90/80/70/60 scale. Your program should: - Ask the user how many students, and how many assignments there are - Get student names from the user - Get grades from the user - Calculate final grades - Print the report Requirements: - Must use multidimensional arrays hold student names - 2D array to - 2D array to hold all grades - Array to hold final letter grades Functions (You must fill in the parameters): void getGrades (); void printGrades (); void getStudents(); void printstudents ; void calcGrades) void printFinalGrades)

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!