Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

I need help to finish this program : #include <iostream> #include <fstream> #inc

ID: 3617956 • Letter: I

Question

I need help to finish this program : #include <iostream>
#include <fstream>
#include <stdlib.h>  //for the exit() function

using namespace std;

//function prototypes
void ReadInScores (int scores[], int & howMany);
float FindAverage(int scores[], int howMany);
void PrintScores(int scores[], int howMany);

int main()
{
    //varible declaration
    const int MAX_SCORES = 30;   //the array has at most 30 entries
    int scores [MAX_SCORES];     //an array of test scores with 30 entries
    int howMany;                 //the actual size of the array
    float averageScore;          //the average of the scores array

    //activate the function to read the scores
    ReadInScores(scores, howMany);

    //activate the function to print the scores
    PrintScores(scores, howMany);

    //Place your activation statement for FindAverage() here
    //averageScore will be assigned from FindAverage
  Place youractivation statement for FindAverage() hereaverageScore will be assigned from FindAverageREMEMBER: average is float and make sure NOT to do interger expression.

    cout<<"Average score is : "<<averageScore<<endl;
    return 0;
}

//Function:  ReadInScores()
//This function reads a set of scores from standard input.
//First the number of scores is read, then the scores.
void ReadInScores (int scores[], int& howMany)
{
    //read the number of scores first
    //then read the scores into array
    // The input ofthe first line is the number of scores,// and the rest of the input are scores.// Read the number of scores first then read the scores into array// Do NOT add any OUTPUT statement here!!
}

//Your PrintScores() function
//This function is passed an array of scores and the
//number of scores.  It printsthe scores.
void PrintScores(int scores[], int howMany)
{
    //print scores in array
    //number of scores in the array is howMany
    for (int i=0; i<howMany; i++)
      cout << scores[i]<<endl;
  
    return;
}

//Place your FindAverage()function definition here
//Function: FindAverage()
//This function is passed an array of scores and the
//number of scores.  It returns the average of the scores.
  Place yourFindAverage()function definition hereFunction: FindAverage()This function is passed an array of scores and thenumber of scores. It returns the average of the scores. I need help to finish this program : #include <iostream>
#include <fstream>
#include <stdlib.h>  //for the exit() function

using namespace std;

//function prototypes
void ReadInScores (int scores[], int & howMany);
float FindAverage(int scores[], int howMany);
void PrintScores(int scores[], int howMany);

int main()
{
    //varible declaration
    const int MAX_SCORES = 30;   //the array has at most 30 entries
    int scores [MAX_SCORES];     //an array of test scores with 30 entries
    int howMany;                 //the actual size of the array
    float averageScore;          //the average of the scores array

    //activate the function to read the scores
    ReadInScores(scores, howMany);

    //activate the function to print the scores
    PrintScores(scores, howMany);

    //Place your activation statement for FindAverage() here
    //averageScore will be assigned from FindAverage
  Place youractivation statement for FindAverage() hereaverageScore will be assigned from FindAverageREMEMBER: average is float and make sure NOT to do interger expression.

    cout<<"Average score is : "<<averageScore<<endl;
    return 0;
}

//Function:  ReadInScores()
//This function reads a set of scores from standard input.
//First the number of scores is read, then the scores.
void ReadInScores (int scores[], int& howMany)
{
    //read the number of scores first
    //then read the scores into array
    // The input ofthe first line is the number of scores,// and the rest of the input are scores.// Read the number of scores first then read the scores into array// Do NOT add any OUTPUT statement here!!
}

//Your PrintScores() function
//This function is passed an array of scores and the
//number of scores.  It printsthe scores.
void PrintScores(int scores[], int howMany)
{
    //print scores in array
    //number of scores in the array is howMany
    for (int i=0; i<howMany; i++)
      cout << scores[i]<<endl;
  
    return;
}

//Place your FindAverage()function definition here
//Function: FindAverage()
//This function is passed an array of scores and the
//number of scores.  It returns the average of the scores.
  Place yourFindAverage()function definition hereFunction: FindAverage()This function is passed an array of scores and thenumber of scores. It returns the average of the scores.

Explanation / Answer

please rate - thanks #include #include #include //for the exit() function using namespace std; //function prototypes void ReadInScores (int scores[], int & howMany); float FindAverage(int scores[], int howMany); void PrintScores(int scores[], int howMany); int main() {     //varible declaration     const int MAX_SCORES = 30;   //thearray has at most 30 entries     int scores [MAX_SCORES];    //an array of test scores with 30 entries     inthowMany;                //the actual size of the array     floataverageScore;         //the average of the scores array     //activate the function to read the scores     ReadInScores(scores, howMany);     //activate the function to print the scores     PrintScores(scores, howMany);     //Place your activation statement forFindAverage() here     //averageScore will be assigned fromFindAverage averageScore= FindAverage(scores,howMany);     cout
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote