C++
Student Data
Write a program that uses two structures Name and Student to store the following information for multiple students:
Suppose that a class has at most 20 students. Use an array of 20 components of type studentType. You will read in the names, id, and email from classroster.txt. The first line of the file will tell you how many students are in the class. To get the the GPA and program for each student you will need to read from studentlist.txt. The second file will have the id, program, and GPA for all of the students in the department. That means that not every student from studentlist.txt will be in classroster.txt. You will need to only add GPA and program for the students in the class.
Your program must contain at least the following functions (the function prototypes are provided in the starter code):
A function to read the students’ data into the array.
A function to assign the relevant program and GPA to each student.
A function to find the highest GPA.
A function to print the names of the students having the highest GPA.
Other than declaring the variables and opening the input and output files, the function main should only be a collection of function calls.
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here