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.
![student 1
10
10
10
10.0
st_ave[0]
student 2
2
1
1.0
st_ave[1]
student 3
8
9.
7.7
st_ave[2]
student 4
8
4
10
7.3
st_ave[3]
quiz_ave
7.0
5.0
7.5
The image is an example of quiz_ave and st_ave across the entire array.
quiz_ave[0]
quiz_ave[1]
quiz_ave[2]](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2Ff1d83782-4cfc-4984-9b8a-d1f4073f692c%2F945e3c8a-d7cd-4b11-85b5-0543b22dcb2a%2F1wyecv_processed.png&w=3840&q=75)

Trending now
This is a popular solution!
Step by step
Solved in 2 steps with 1 images









