Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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, , using namespace std

image text in transcribed

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Pro SQL Server Wait Statistics

Authors: Enrico Van De Laar

1st Edition

1484211391, 9781484211397

More Books

Students also viewed these Databases questions