Develop a C++ program named hw2.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...




Develop a C++ program named hw2.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 (there will be 30 students, at most). 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 shows a sample input data file. Please note that the file has the number of students as the first line. Sample Input File 5 1000 87.0 92.5 2000 100.0 100.0 3000 79.0 81.0 4000 99.0 98.5 5000 65.0 61.9
Feb 19, 2023
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here