Question: Write a C++ program that reads students names followed by their test scores. The program should output each students name followed by the test scores
Write a C++ program that reads students names followed by their test scores. The program should output each students name followed by the test scores and the grade. You will create the data for each student, using fake names, scores, and grades. Your program should also find and print the highest test score and the name of the students having the highest test score. (1 pt.) Student data should be stored in a struct variable of type studentType, which has four components: studentFName and studentLName of type string, testScore of type int (testScore is between 0 and 100), and grade of type char. (1 pt.) Suppose that the class has 20 students. Use an array of 20 components of type studentType. (1 pt.) Your program must contain at least the following functions and the function "main" should only be a collection of function calls. a. A function to read the students data from the input text file into the array of structs. (1 pt.) b. A function to assign the relevant grade to each student and find the highest score. (1 pt.) d. A function to print the names of the students having the highest test score. (1 pt.) Your program must output the file information in three columns (no need to print a column separator character, but you should align each type of data left justified):
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
