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

Please complete this C program by following the directions provided, Thanks! You

ID: 3879139 • Letter: P

Question

Please complete this C program by following the directions provided, Thanks!

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)

Explanation / Answer

#include <stdio.h>

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<m;i++)

{

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

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

}

  

//grades

for(j=0;j<n;j++)

{

char student_grade[5][25];

for(k=0;k<m;k++)

{

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

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

}

}

//final grades

for(i=0;i<m;i++)

{

char student_finalgrade[5][25];

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

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

}

//printFinalgrades

for(k=0;k<m;k++)

{

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

}

printf(" ");

for(q=0;q<m;q++)

{

for(p=0;p<n;p++)

{

char student_grade[5][25];

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

}

printf(" ");

}

for(i=0;i<m;i++)

{

char student_finalgrade[5][25];

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

}

}

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote