Course Solutions Uncategorized (Solved) : Need Help C Program Calculates Average High Score Low Score Number Average Number Average Q27144665 . . . .

(Solved) : Need Help C Program Calculates Average High Score Low Score Number Average Number Average Q27144665 . . . .

 

need help C++

//******************************************************************
// This program calculates the average, high score, lowscore,
// number above the average, and number below the average for
// a file of test scores.
// Assumption: File contains at least one non-zero value
//******************************************************************

#include <iostream>
#include <fstream>
#include <iomanip>

using namespace std;

struct GradeStatistics
{
intnumGrades;          // Number of grades
floataverage;          // Average grade
inthighest;            // Highest grade
intlowest;             // Lowest grade
int aboveAverage;        //Number of grades above the average
int belowAverage;        //Number of grades below the average
int grades[101];         //Array of grades
};

// Declare function prototypes
void CalculateStatistics(GradeStatistics& statistics,ifstream& inData);
// Post: Data has been read and statistics calculated.
void OpenFiles(ifstream& inData, ofstream& outData);
// Post: File names have been prompted for and files areopened.
//       Input file name has beenwritten

OR

PayPal Gateway not configured

OR

PayPal Gateway not configured

Leave a Reply

Your email address will not be published. Required fields are marked *

Related Post