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.

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question

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]
Transcribed Image Text: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]
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps with 1 images

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY