Write C++ code that reads students' grades from input data "data11.txt", find each student's average, and assign a grade. Input data represents in the following format: Student-ID Name Exam-1 Exam-2 Exam-3 Exam-4 2201 John 75 65 95 85 ... Average can be calculated as Exam1 + Exam2 + Exam3 + Exат4 Average = 4 Grade assignment is 90-100 : A, 80-89 : B, 70-79 :C, 60-69 : D, 0-59: F Print the results in a file "ouput11.txt" in the following format Sample output: Student-ID Name Exam-1 Exam-2 Exam-3 Exam-4 Average Grade 2001 John 75 65 95 85 80.0 B 2002 Mike 90 80 100 95 91.2 A ...

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
Second image is "data11.txt"
2201
John
75
65
95
2202
Mike
90
80
100
2203
Eric
88
90
75
2204
Alan
65
75
90
2205
Peter
75
80
90
2206
Paul
60
55
60
Jery
Alex
2207
50
55
45
2208
90
95
85
2209
Mario
95
95
100
Daisy
Edgar
Alize
2210
75
100
100
2211
80
85
68
2212
75
50
65
Christoper
Kennith
2213
65
60
74
2214
80
100
95
2215
Jonathan
75
65
82
Transcribed Image Text:2201 John 75 65 95 2202 Mike 90 80 100 2203 Eric 88 90 75 2204 Alan 65 75 90 2205 Peter 75 80 90 2206 Paul 60 55 60 Jery Alex 2207 50 55 45 2208 90 95 85 2209 Mario 95 95 100 Daisy Edgar Alize 2210 75 100 100 2211 80 85 68 2212 75 50 65 Christoper Kennith 2213 65 60 74 2214 80 100 95 2215 Jonathan 75 65 82
1. Write C++ code that reads students' grades from input data "data11.txt", find each
student's average, and assign a grade.
Input data represents in the following format:
Student-ID Name
Exam-1 Exam-2 Exam-3 Exam-4
2201
John
75
65
95
85
Average can be calculated as
Εxam1 + Exam2+ Εxam3+ Exam4
Average
4
Grade assignment is
90-100 : A, 80-89 : B, 70-79: C, 60-69 : D, 0-59: F
Print the results in a file "ouput11.txt" in the following format
Sample output:
Student-ID Name Exam-1 Exam-2 Exam-3 Exam-4 Average Grade
2001
John
75
65
95
85
80.0
B
2002
Mike
90
80
100
95
91.2
A
End of the output file, find out the followings and print them.
a. List the students has grade A
b. List the students has grade B
c. List the students has grade C
d. List the students has grade D
Sample output:
Student List has grade A
2202 Mike A
Students List has grade B
2002 John
B
...
Transcribed Image Text:1. Write C++ code that reads students' grades from input data "data11.txt", find each student's average, and assign a grade. Input data represents in the following format: Student-ID Name Exam-1 Exam-2 Exam-3 Exam-4 2201 John 75 65 95 85 Average can be calculated as Εxam1 + Exam2+ Εxam3+ Exam4 Average 4 Grade assignment is 90-100 : A, 80-89 : B, 70-79: C, 60-69 : D, 0-59: F Print the results in a file "ouput11.txt" in the following format Sample output: Student-ID Name Exam-1 Exam-2 Exam-3 Exam-4 Average Grade 2001 John 75 65 95 85 80.0 B 2002 Mike 90 80 100 95 91.2 A End of the output file, find out the followings and print them. a. List the students has grade A b. List the students has grade B c. List the students has grade C d. List the students has grade D Sample output: Student List has grade A 2202 Mike A Students List has grade B 2002 John B ...
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps

Blurred answer
Similar questions
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