finds the average for all assignments for an individual student float getAverageForStudent(float scores[20][10], int student, int numAssignments) { }
// finds the average for all students for an individual assignment float getAverageForAssignment(float scores[20][10], int numStudents, int assignment) { }
// finds the standard deviation for all students for an individual assignment float getStandardDeviationForAssignment (float scores[20][10], int numStudents, int assignment) { }
// prints the table with all scores for all students for all assignments, including the
// averages and standard deviations void printScores(char students[20][50], float scores[20][10], int numStudents, int numAssignments) { }
You may have more functions if you like, but you must have at least the four functions above and your main function. Below is a sample execution of the program (user input is bolded):
How many students are there (between 1 and 20)? 4
How many assignments are there (between 1 and 10)? 3
Student name: Jeff
Assignment 1: 100
Assignment 2: 100
Assignment 3: 100
Student name: Mike
Assignment 1: 50
Assignment 2: 45
Assignment 3: 90
Student name: John
Assignment 1: 100
Assignment 2: 20
Assignment 3: 30
Student name: Paul
Assignment 1: 20
Assignment 2: 20
Assignment 3: 0
Name Assn1 Assn2 Assn3 Average
Jeff 100 100 100 100.00
Mike 50 45 90 61.67
John 100 20 30 50.00
Paul 20 20 0 13.33
Avg 67.50 46.25 55.00 56.25
StdD 39.48 37.72 47.96 35.70
Grading Criteria
0.5% prompting the user the correct number of times based on number of students and assignment.
0.5% printing the output formatted as shown 1.0% computing the average for each student correctly.
1.0% computing the average for each assignment correctly.
1.0% computing the standard deviation correctly.
1.0% for using at least 5 functions .