Program type C Write code that will fill the array a (declared below) with numbers typed in at the keyboard. Each line refers to an individual student’s quiz grades. So, there are 4 students with 3 grades that can entered through the keyboard. (The grades are out of 10) int a[4][3]; For this assignment, create a function that calculates the average of a 1-d array and returns that average. Call this function multiple times to find averages across all rows and columns. Store each student’s quiz grades in an array called st_ave. Also store average of each quiz across all 4 students in another array called quiz_ave. Print all the information in a format that resembles the gray boxes below.
Program type C
Write code that will fill the array a (declared below) with numbers typed in at the keyboard. Each line refers to an individual student’s quiz grades. So, there are 4 students with 3 grades that can entered through the keyboard. (The grades are out of 10)
int a[4][3];
For this assignment, create a function that calculates the average of a 1-d array and returns that average. Call this function multiple times to find averages across all rows and columns.
Store each student’s quiz grades in an array called st_ave.
Also store average of each quiz across all 4 students in another array called quiz_ave.
Print all the information in a format that resembles the gray boxes below.
Trending now
This is a popular solution!
Step by step
Solved in 2 steps with 1 images