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 ID and the average of each student to a new file named average tat Ito 6.49 159 183 80.5 44 average, tat container 22 42.1 33 37.3 Quind 4 2 Average 50.95 12.20 56.40 46.70

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
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
Sto ID
27
31
44
5
Quial Quie2
INS
CO
30
U
50
2
31
45
T
23
AS
AV
2
2
69
average tat container
11 74.6
22 62.1
33 37.1
44 5.5
55 91.6
66 67.9
17 32.3
8880.5
99 58.4
12 10.5
Quins
42
76
16
DA
32
3
31.1
90
20
94
441
2
Quies
819
Quie Number
44
33
14
45
32.5
Output should be
Average
50.95
52.20
56.40
66.70
62.50
Transcribed Image Text: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 Sto ID 27 31 44 5 Quial Quie2 INS CO 30 U 50 2 31 45 T 23 AS AV 2 2 69 average tat container 11 74.6 22 62.1 33 37.1 44 5.5 55 91.6 66 67.9 17 32.3 8880.5 99 58.4 12 10.5 Quins 42 76 16 DA 32 3 31.1 90 20 94 441 2 Quies 819 Quie Number 44 33 14 45 32.5 Output should be Average 50.95 52.20 56.40 66.70 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