5. Write a C program that reads IDs and 5 quiz grades of several students from grades.txt; finds and displays the average of each quiz. Also find the average of each student and write the ID and the average of each student to a new file named average.txt. arades.tat stw ID 44 55 91.6 Quiel Quind KINE 405 27 32.3 8880.5 99 58.4 12 70.5 10 3059 average txt container 11 V126 22 62.1 33 37.1 5.5 AS QUERY] Quied 100 KERY Output should be Quie Number Average 50,95 52.20 56.40 1 Jules 2 3 66.70 62.50

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
S. Write a C program that reads IDs and 5 quiz grades of several students from grades.txt; finds and displays the
average of each quiz. Also find the average of each student and write the e ID and the average of e
of each student to a
new file named average.txt.
arades.txt:
Stu ID Quial Quie
45.5 40.5
50
11.
22
31
44
55
44
LL
48
12 1
O
30
35
20.5
45
30.5
S
85
14
69
54
average txt containal
11 V1.6
22 62.1
33 37.1
44 5.5
55 91.6
66 67.9
27 32.3
88 80.5
99
58.4
12 70.5
ENTRO
12
TO
10
10.5
100
4EPY
32
49
149
Quind
54
71
4
5
GRIND
Quis Number
40
10
90
94
50
43 31.3
44
Output should be
24
45
Average
50.95
52.20
56.40
66.30
62.50
Transcribed Image Text:S. Write a C program that reads IDs and 5 quiz grades of several students from grades.txt; finds and displays the average of each quiz. Also find the average of each student and write the e ID and the average of e of each student to a new file named average.txt. arades.txt: Stu ID Quial Quie 45.5 40.5 50 11. 22 31 44 55 44 LL 48 12 1 O 30 35 20.5 45 30.5 S 85 14 69 54 average txt containal 11 V1.6 22 62.1 33 37.1 44 5.5 55 91.6 66 67.9 27 32.3 88 80.5 99 58.4 12 70.5 ENTRO 12 TO 10 10.5 100 4EPY 32 49 149 Quind 54 71 4 5 GRIND Quis Number 40 10 90 94 50 43 31.3 44 Output should be 24 45 Average 50.95 52.20 56.40 66.30 62.50
Expert Solution
steps

Step by step

Solved in 4 steps with 3 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