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

Write a program that will read in numeric grade values for a group of students.

ID: 3620525 • Letter: W

Question

Write a program that will read in numeric grade values for a group of students. The number of students that attempted the assignment is given by the user at the beginning of the program. Ignore, but identify to the user, values that are not between 0 and 100, inclusive. Count the values above or equal to 90 as an A, the values above or equal to 80 and less than 90 as a B, the values above or equal to 70 and less than 80 as a C, the values above or equal to 60 and less than 70 as a D, and those below 60 as an F. Report the total number of students that earned each grade (A, B, C, D, or F) with the percentage of the class that each number represents, the highest and lowest grade on the assignment, and the average grade (number and letter) for the assignment. (we have went over Data Types, Operators, Functions, If and switch statements,Looping statments,and Arrays)

Explanation / Answer

/* Header file section */ #include #include struct CourseGrade { char Name[30]; int IdNo; int *testScores; float Average; char Grade; }; int main() { int no_Students,no_TestScores; printf("Enter number of TestScores:"); scanf("%d",&no_TestScores); printf("Enter number of students:"); scanf("%d",&no_Students); /*Dynamically allocating array of structures for each students*/ CourseGrade students[10]; /*Dynamically allocating Testscores for Each student */ for(int i=0;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