Question: Code in c++ only Develop a C++ program named hw2_l.cpp that reads a data file holding the records of students' id and scores of two
Develop a C++ program named hw2_l.cpp that reads a data file holding the records of students' id and scores of two exams. Your program should determine the numeric average and letter grade of each student. Then, your program should print out the students arranged from highest numeric average, to lowest The output should go back to the console, not a file You should create a struct to hold the student's id, numeric average, and letter grade. Furthermore, you are to use an array to hold this data. Note, you will not have an array within your struct declaration. The following show's a sample input data file Please note that the file has the number of students on the first line. A sample run of your program might look like this Note that the user's input are highlighted in bold
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
