Computer Networking: A Top-Down Approach (7th Edition)
Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN: 9780133594140
Author: James Kurose, Keith Ross
Publisher: PEARSON
Bartleby Related Questions 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]
expand button
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
Check Mark
Knowledge Booster
Background pattern image
Similar questions
Recommended textbooks for you
Text book image
Computer Networking: A Top-Down Approach (7th Edi...
Computer Engineering
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:PEARSON
Text book image
Computer Organization and Design MIPS Edition, Fi...
Computer Engineering
ISBN:9780124077263
Author:David A. Patterson, John L. Hennessy
Publisher:Elsevier Science
Text book image
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:9781337569330
Author:Jill West, Tamara Dean, Jean Andrews
Publisher:Cengage Learning
Text book image
Concepts of Database Management
Computer Engineering
ISBN:9781337093422
Author:Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:Cengage Learning
Text book image
Prelude to Programming
Computer Engineering
ISBN:9780133750423
Author:VENIT, Stewart
Publisher:Pearson Education
Text book image
Sc Business Data Communications and Networking, T...
Computer Engineering
ISBN:9781119368830
Author:FITZGERALD
Publisher:WILEY