Question: c++ Write a program that reads students' names followed by their test scores. The program should output each student's name followed by the test score
c++
Write a program that reads students' names followed by their test scores. The program should output each student's name followed by the test score and relevant grade. It should also find and print the highest test score and the name of the students having the highest test scores. 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 (should be between 0 and 100), and grade of type char. Suppose that the class has 20 students. Use an array of 20 components of type studentType. Your program should have the following functions: 1. getData() // file getdata.cpp; to read the students' data into the array 2. calcGrade () // file calcgrade.cpp; to assign the relevant grade to each student 3. highScore() // file highscore.cpp; find the highest test score 4. printResult()// file printres.cpp; print students with highest score
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
