Question: Code this in c++. The inout file is also attached. Assume you are working with an input file that is structured like this 1. Create

Code this in c++. The inout file is also attached.  Code this in c++. The inout file is also attached. Assume
you are working with an input file that is structured like this

Assume you are working with an input file that is structured like this 1. Create a class StudentInfo to hold the student's first and last name, their class level (First, Sophomore, Junior, Senior), and their GPA. It should include a default constructor and a constructor that takes 4 parameters, as well as getters for your private fields. You can go straight to C++ for this. 2. Discuss how to write code to read the data from the file into a vector of Students. Check your answer with one of the lab teachers 3. Write the code you discussed in 2. Copy-paste your code into your lab report. Run your code to be sure it's right, and check your answer with one of the lab teachers before moving on 4. Discuss how to change your code so that it sends the average gpa to an ouput file. After that, you should also output the names of all students whose gpas were above the average to the file. Check your answer with one of the lab teachers before moving on, and get your lab report signed. 5. Change your code as discussed in 4. Copy-paste your code into your lab report. Run your code to be sure it's right, check your answer with one of the lab teachers before moving on, and get your lab report signed. Bob Smith First 3.6 Jim McGee Sophomore 2.4 Jill Johnson Sophomore 3.6 Joyce Masterson First 3.2 Bill Jameson Sophomore 2.7 Bob Hughes Senior 3.1 Kenny Cranston Junior 2.5 Stan Marsh Junior 2.5 Eric Cartman Senior 3.1

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!