Hello everyone!
I'm working on this C++ program but im kind of lost. I'm using calling fuctions with void and parameters to create this program that is supposed to average a set of 5 scores and dropped the lowest one. It should calculate and display the average of the four highest scores. This function should be called just once by main, and should be passed the five scores. Then it should average the four highest scores and dropped the lowest one.

// The following program is designed to average a group of test scores
// where the lowest score is dropped.
#include <iostream>
#include <iomanip>

using namespace std;

// This part of the program is where the prototypes
// are going to be located.
double getScore (double, double, double, double, double);
double calcAverage (double, double, double, double, double);
double findLowest (double);

// Now the main function of the program is going to be 
// set up.

int main()
{

  getScore(score1);
  getScore(score2);
  getScore(score3);
  getScore(score4);
  getScore(score5);

  return 0; 
}


// This part of the program is where the prototypes are going
// to be located.

double getScore (double score1, double score2, double score3, double score4, double score5)
{
    cout << " Enter the first score that you wish to average: \n " ;
    cin >> score1;

    cout << " Enter the second score that you wish to average: \n ";
    cin >> score2;

    cout << " Enter the third score that you wish to average: \n";
    cin >> score3;

    cout << " Enter the fourth score that you wish to average: \n ";
    cin >> score4;

    cout << " Enter the first score that you wish to average: \n";
    cin >> score5;

    return getScore;
}
Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.19 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.