Write C++ code that reads students' grades from input data "studentgrades.txt", find each student's average. Inputted Data: (from a text file) A B fName Lname C D Hans Redolf 75 89 92 98 James Mith 89 76 85 92 Harry Kit Monte 78 95 86 62 Hamilton 91 92 93 94 Sample Output A B C D EE 11T fName Lname Average 91.2 Hans James Mith Redolf 75 89 92 98 89 76 85 92 89.2 Harry Monte 78 95 86 62 90.4

EBK JAVA PROGRAMMING
9th Edition
ISBN:9781337671385
Author:FARRELL
Publisher:FARRELL
Chapter8: Arrays
Section: Chapter Questions
Problem 9PE
icon
Related questions
Question
Related Topics:
Struct Array
Linked List
Etc
Write C++ code that reads students' grades from input data "studentgrades.txt", find
each student's average.
Inputted Data: (from a text file)
fName
Lname
B
89
A
Hans
Redolf
75
92
98
James Mith
89
76
85
92
Нarry
Kit
Monte
78
95
86
62
Hamilton 91
92
93
94
Sample Output
fName Lname
A
B
Average
Hans
Redolf
75
89
92
98
91.2
James Mith
89
76
85
92
89.2
Harry
Kit
Monte
78
95
86
62
90.4
91.5
Hamilton 91
92
93
94
(after grade output, there are menus that also needed)
a. List the students alphabetical based on First Name
b. List the students alphabetical based on Last Name
c. List the students based on Highest Average to Lowest
d. List the students based on Lowest Average to Highest
e. Print the results in data file "Output.txt"
(each selected on menu should have clear screen and like refreshing the new grade
outputs according to the selected menu and then show again the menus)
Transcribed Image Text:Related Topics: Struct Array Linked List Etc Write C++ code that reads students' grades from input data "studentgrades.txt", find each student's average. Inputted Data: (from a text file) fName Lname B 89 A Hans Redolf 75 92 98 James Mith 89 76 85 92 Нarry Kit Monte 78 95 86 62 Hamilton 91 92 93 94 Sample Output fName Lname A B Average Hans Redolf 75 89 92 98 91.2 James Mith 89 76 85 92 89.2 Harry Kit Monte 78 95 86 62 90.4 91.5 Hamilton 91 92 93 94 (after grade output, there are menus that also needed) a. List the students alphabetical based on First Name b. List the students alphabetical based on Last Name c. List the students based on Highest Average to Lowest d. List the students based on Lowest Average to Highest e. Print the results in data file "Output.txt" (each selected on menu should have clear screen and like refreshing the new grade outputs according to the selected menu and then show again the menus)
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Reference Types in Function
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning