Input student1.txt Adaline 77 Lambert 75 Eunice 66 Delmar 68 Tina 92 Rob 78 John 97 Katy 72 Ruth 83 Sharleen 88 Jackson 97 Amy 82 Brianna 71 Darcey 87 Adrian 79 Cindy 86 Cyril 97 Hailey 74 Theo 88 Shantel 97 Bobbi 72 Output Index of array CS 00 LAGE-REVIEW Enter a filename student 1. txt Students in student 1. txt ** Adaline Lambert Eunice Delmar Tina Rob John Katy Ruth Sharleen Jackson Апу Brianna Darcey Adrian Cindy 10 16 19 Cyril Hailey Theo Shantel Bobbi 77 75 66 68 92 78 97 72 83 88 97 82 71 87 79 86 97 74 88 97 72 Max score 97 Students with max score 6 John Jackson Cyril Shantel filename

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question
100%

Use C++

In a student file, there are names and scores. Find the max score and print out the names of the students with the max score. • You must get a filename as standard input. See two sample outputs on the next page. • The number of students in the file is at most 50. • You need to make two arrays (see the next page). 1. Create a string array with size 50. The array will store the names of the students. 2. Create an integer array with a size of 50. The array will store the scores of the students.

Input
student1.txt
Adaline 77
Lambert 75
Eunice 66
Delmar 68
Tina 92
Rob 78
John 97
Katy 72
Ruth 83
Sharleen 88
Jackson 97
Amy 82
Brianna 71
Darcey 87
Adrian 79
Cindy 86
Cyril 97
Hailey 74
Theo 88
Shantel 97
Bobbi 72
Output
Index of array
CS 003 LAG-REVIEW
Enter a filename student 1. txt
Students in student 1. txt **
Adaline
Lambert
Eunice
Delmar
Tina
Rob
Sharleen
Jackson
Апу
Brianna
Darcey
Adrian
John
Katy
Ruth
6
Shantel
Bobbi
10
16
19
Cindy
Cyril
Hailey
Theo
77
75
66
68
92
78
97
72
83
88
97
82
71
87
79
Max score 97
Students with max score
John
Jackson
Cyril
Shantel
86
97
74
88
97
72
filename
Transcribed Image Text:Input student1.txt Adaline 77 Lambert 75 Eunice 66 Delmar 68 Tina 92 Rob 78 John 97 Katy 72 Ruth 83 Sharleen 88 Jackson 97 Amy 82 Brianna 71 Darcey 87 Adrian 79 Cindy 86 Cyril 97 Hailey 74 Theo 88 Shantel 97 Bobbi 72 Output Index of array CS 003 LAG-REVIEW Enter a filename student 1. txt Students in student 1. txt ** Adaline Lambert Eunice Delmar Tina Rob Sharleen Jackson Апу Brianna Darcey Adrian John Katy Ruth 6 Shantel Bobbi 10 16 19 Cindy Cyril Hailey Theo 77 75 66 68 92 78 97 72 83 88 97 82 71 87 79 Max score 97 Students with max score John Jackson Cyril Shantel 86 97 74 88 97 72 filename
Input
Eunice 80
Perry 68
Edna 92
Hailey 88
student2.txt Jacey 72
Amy 79
Kaitlynn 95
Ralph 95
Ruth 91
Garnet 83
Oliver 78
Pam 82
John 95
Output
Enter a filename: student2. txt filename
**Students in student2. txt ***
80
68
92
88
72
79
95
95
91
83
78
82
95
Eunice
Perry
Edna
Hailey
Jacey
Amy
Kaitlynn
Ralph
Ruth
12
Garnet
Oliver
Pam
John
**Max score: 95
Students with max score
6 Kaitlynn
7 Ralph
John
Transcribed Image Text:Input Eunice 80 Perry 68 Edna 92 Hailey 88 student2.txt Jacey 72 Amy 79 Kaitlynn 95 Ralph 95 Ruth 91 Garnet 83 Oliver 78 Pam 82 John 95 Output Enter a filename: student2. txt filename **Students in student2. txt *** 80 68 92 88 72 79 95 95 91 83 78 82 95 Eunice Perry Edna Hailey Jacey Amy Kaitlynn Ralph Ruth 12 Garnet Oliver Pam John **Max score: 95 Students with max score 6 Kaitlynn 7 Ralph John
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
File Input and Output Operations
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
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education