Instructions Instructions Write a program that reads students' names followed by their test scores. The program should output each student's name followed by the test scores and the relevant grade. It should also find and print the highest test score and the name of the students having the highest test score. Student data should be stored in a struct variable of type student Type, which has four components: student FName and studentLName of type string, testScore of type int ( test Score is between 0 and 100), and grade of type char. Suppose that the class has 20 students. Use an array of 20 components of type student Type. Your program must contain at least the following functions: • A function to read the students' data into the array. • A function to assign the relevant grade to each student. • A function to find the highest test score. • A function to print the names of the students having the highest test score. Your program must output each student's name in this form: last name followed by a comma, followed by a space, followed by the first name; the name must be left justified. Moreover, other than declaring the variables and opening the input and output files, the function main should only be a collection of function calls. Your program should accept no input and save the output to Ch9_Ex2Out.txt. Grading When you have completed your program, click the Submit button to record your score. Ch9_Ex2Data.txt 1 #include 2 3 using namespace std; Ch9_Ex2Out.txt 5 int main() { 6 7 8} 9 // Write your main here return 0; main.cpp

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

C++ Programming

Alice test
Description
Searched your code for a specific pattern:
Wonderful, Alice\s+89\s+B
You can learn more about regular expressions
Code Pattern. Incomplete
Greg test
Description
Searched your code for a specific pattern:
Gupta, Greg\s+75\s+C
You can learn more about regular expressions
Code Pattern Incomplete
Amy test
Description
Searched your code for a specific pattern:
Cheng, Amy\s+83\s+B
[here](https://ruby-doc.01
>
[here](https://ruby-doc.01
Transcribed Image Text:Alice test Description Searched your code for a specific pattern: Wonderful, Alice\s+89\s+B You can learn more about regular expressions Code Pattern. Incomplete Greg test Description Searched your code for a specific pattern: Gupta, Greg\s+75\s+C You can learn more about regular expressions Code Pattern Incomplete Amy test Description Searched your code for a specific pattern: Cheng, Amy\s+83\s+B [here](https://ruby-doc.01 > [here](https://ruby-doc.01
Instructions
Instructions
Write a program that reads students' names followed by their test scores. The program should
output each student's name followed by the test scores and the relevant grade. It should also find
and print the highest test score and the name of the students having the highest test score.
Student data should be stored in a struct variable of type student Type, which has four
components: student FName and studentLName of type string, testScore of type int (
test Score is between 0 and 100), and grade of type char. Suppose that the class has 20
students. Use an array of 20 components of type student Type. Your program must contain at
least the following functions:
• A function to read the students' data into the array.
• A function to assign the relevant grade to each student.
• A function to find the highest test score.
• A function to print the names of the students having the highest test score.
Your program must output each student's name in this form: last name followed by a comma,
followed by a space, followed by the first name; the name must be left justified. Moreover, other
than declaring the variables and opening the input and output files, the function main should
only be a collection of function calls.
Your program should accept no input and save the output to Ch9_Ex2Out.txt.
Grading
When you have completed your program, click the Submit button to record your score.
Ch9_Ex2Data.txt
1 #include <iostream>
2
3 using namespace std;
4
5 int main() {
6
7
Ch9_Ex2Out.txt
// Write your main here
return 0;
main.cpp
+
Transcribed Image Text:Instructions Instructions Write a program that reads students' names followed by their test scores. The program should output each student's name followed by the test scores and the relevant grade. It should also find and print the highest test score and the name of the students having the highest test score. Student data should be stored in a struct variable of type student Type, which has four components: student FName and studentLName of type string, testScore of type int ( test Score is between 0 and 100), and grade of type char. Suppose that the class has 20 students. Use an array of 20 components of type student Type. Your program must contain at least the following functions: • A function to read the students' data into the array. • A function to assign the relevant grade to each student. • A function to find the highest test score. • A function to print the names of the students having the highest test score. Your program must output each student's name in this form: last name followed by a comma, followed by a space, followed by the first name; the name must be left justified. Moreover, other than declaring the variables and opening the input and output files, the function main should only be a collection of function calls. Your program should accept no input and save the output to Ch9_Ex2Out.txt. Grading When you have completed your program, click the Submit button to record your score. Ch9_Ex2Data.txt 1 #include <iostream> 2 3 using namespace std; 4 5 int main() { 6 7 Ch9_Ex2Out.txt // Write your main here return 0; main.cpp +
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps

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