Calculates and displays the maximum grade in the array

Assignment Help C/C++ Programming
Reference no: EM132101084

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

Reference no: EM132101084

Questions Cloud

Retrospect methodology of gathering feedback : What it the retrospect methodology of gathering feedback. And how it should be used
Highest paid officers for walmart last year : What is the total compensation for the three highest paid officers for Walmart last year(including the value of stock options and other benefits)?
What was the court reasoning : Brad Gupta formed two companies, Ameriquest Holdings and Ananya Aviation, What was the court's reasoning?
Employees commitment to employers : What impact will flexible work schedules potentially have on employees' commitment to their employers?
Calculates and displays the maximum grade in the array : Declare the structure named student composed of id (int), first (string), last (string), and grade (float).
Designing and implementing an hrd program : Describe the activities involved in designing and implementing an HRD program.
Hurwicz approach includes coefficient of optimum : Hurwicz approach includes a coefficient of optimum. Break even analysis help analysts in planning of production capacity.
Perform in the outside pavilion of the wolf trap foundation : The opera company was hired to perform in the outside pavilion of the Wolf Trap Foundation.
Write an assembly language program to accept positive : Write a 68000 assembly language program to accept positive integer values M and N from the keyboard, compute the value of Y using the formula.

Reviews

Write a Review

C/C++ Programming Questions & Answers

  Create program that uses functions and reference parameters

Create program that uses functions and reference parameters, and asks user for the outside temperature.

  Write a program using vectors and iterators

Write a program using vectors and iterators that allows a user to maintain a personal list of DVD titles

  Write the code required to analyse and display the data

Calculate and store the average for each row and column. Determine and store the values for the Average Map.

  Write a webservices application

Write a webservices application that does a simple four function calculator

  Iimplement a client-server of the game

Iimplement a client-server version of the rock-paper-scissors-lizard-Spock game.

  Model-view-controller

Explain Model-View-Controller paradigm

  Design a nested program

How many levels of nesting are there in this design?

  Convert celsius temperatures to fahrenheit temperatures

Write a C++ program that converts Celsius Temperatures to Fahrenheit Temperatures.

  Evaluate and output the value in the given base

Write C program that will input two values from the user that are a Value and a Base with which you will evaluate and output the Value in the given Base.

  Design a base class shape with virtual functions

Design a base class shape with virtual functions

  Implementation of classes

Implementation of classes Chart and BarChart. Class barChart chould display a simple textual representation of the data

  Technical paper: memory management

Technical Paper: Memory Management, The intent of this paper is to provide you with an in depth knowledge of how memory is used in executing, your programs and its critical support for applications.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd