: Write a program that reads a file containing exactly 10 lines, each line contains exactly 10 integers. For each line, print the average for all numbers in it. Sample Input 47 22 3 25

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
i need the answer quickly
Homework#4:
: Write a program that reads a file containing exactly 10 lines,
each line contains exactly 10 integers. For each line, print the
average for all numbers in it.
Sample Input
47
22
3
25
4
24
40
45
50
27
35
14
4
69
76
10
95
16
61
22
54
63
58
67
10
37
65
88
13
32
50
37
1
52
56
14
78
i 18
20
75
44
89
30
40
43
21
64
30
33
34
85
65
20
80
79
24
48
19
89
12
25
41
69 I
71
75
33
49
65
17
71
88
24
54
1
74
27
9.
93
82
34
47
83
79
46
12
4
73
29
65
13
30
Sample Output
Line #01: 28.70
I Line #02: 40.20
Line #03: 45.70
Line #04: 43.30
Line #05: 42.40
Line #06: 54.90
Line #07: 41.00
Line #08: 54.70
ILine #09: 45.20
Line #10: 36.00
---- - --
7 2 7 65om
n n 4 521 NO
LO m s
SH LO O
* O 00 o
---- ------
--- ---- ---- EE
Transcribed Image Text:Homework#4: : Write a program that reads a file containing exactly 10 lines, each line contains exactly 10 integers. For each line, print the average for all numbers in it. Sample Input 47 22 3 25 4 24 40 45 50 27 35 14 4 69 76 10 95 16 61 22 54 63 58 67 10 37 65 88 13 32 50 37 1 52 56 14 78 i 18 20 75 44 89 30 40 43 21 64 30 33 34 85 65 20 80 79 24 48 19 89 12 25 41 69 I 71 75 33 49 65 17 71 88 24 54 1 74 27 9. 93 82 34 47 83 79 46 12 4 73 29 65 13 30 Sample Output Line #01: 28.70 I Line #02: 40.20 Line #03: 45.70 Line #04: 43.30 Line #05: 42.40 Line #06: 54.90 Line #07: 41.00 Line #08: 54.70 ILine #09: 45.20 Line #10: 36.00 ---- - -- 7 2 7 65om n n 4 521 NO LO m s SH LO O * O 00 o ---- ------ --- ---- ---- EE
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