Declare the structure named student composed of id int


Please use c++ language and create a function for each of the bullet points. Also this question is about structures and files so the information is going to come from a file the user will not be asked to fill in the information.

Question : Let's consider an input file that contains student id (int), first name (string), last name (string), and grade (float). We assume that the file contains between 1 and 100 grades.

Write a program that:

Declare 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.

Reads the grades from the file to fill up an array of type student.

Calculates and displays the maximum grade in the array with name.

Calculates and displays the minimum grade in the array with name.

Calculates and displays the average grade Calculates and displays how many students were processed.

Produce a file with the information above based on a file name provided by the user. The main idea is to explore the benefits of using structs.

So every task should be done after the whole array is filled up The files must contain at least 5 records All items must be done with functions w/ parameters.

John Smith 30 10.0

Sarah Johnson 25 15.0

Jim Robinson 20 20.00

Mary Anderson 15 25.0

Michael Jackson 10 30.0

Request for Solution File

Ask an Expert for Answer!!
C/C++ Programming: Declare the structure named student composed of id int
Reference No:- TGS02894540

Expected delivery within 24 Hours