Question: C++, no pointers, , using namespace std Consider an input file that contains student id (int), first name (string), last name (string), and grade (float).
C++, no pointers,

Consider an input file that contains student id (int), first name (string), last name (string), and grade (float). We presume that the file contains anywhere from 1 to 100 grades. Write a program that: Declares the structure named student composed of ID (int), first (string), last (string), and grade (float). Asks the user for the name of the input file. Do each of these tasks as separate functions: o Reads grades from file named by user to fill up an array of type student. This file should be out of order on purpose (not in order by ID). o Calculate and display the maximum grade in the array, along with student name. o Calculate and display the minimum grade in the array, along with student name. O Calculate and display how many students were processed. o Calculate and display the average grade of all students. o Produce an output file with the information above, into a separate file provided by the user. The main task is to explore the benefits of using structures so every task should be done after the array is filled up and not while it is being loaded. Your test file must contain a minimum of 7 records
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
