//Charlotte Davies-Kiernan CS1A Chapter 3 P.143 #3
//
/*****************************************************************************
*
* Compute Average Test Score
* ___________________________________________________________________________
* This program computes the average score of five test scores.
*
* Using this formual:
* average= (first + second + third + fourth + fifth scores) / 5.0;
* ___________________________________________________________________________
* INPUT
* firstScore : score of the first test
* secondScore : score of the second test
* thirdScore : score of the third test
* fourthScore : score of the fourth test
* fifthScore : score of the fifth test
* OUTPUT
* average : average of the five test scores entered
****************************************************************************/
#include <iostream>
#include <iomanip>
using namespace std;
int main()
{
float average; //OUTPUT - average of the five test scores entered
float fifthScore; //INPUT - fifth test score
float firstScore; //INPUT - first test score
float fourthScore; //INPUT - fourth test score
float secondScore; //INPUT - second test score
float thirdScore; //INPUT - third test score
//
// Get five test scores
cin >> firstScore;
cin >> secondScore;
cin >> thirdScore;
cin >> fourthScore;
cin >> fifthScore;
//
//Solve average
average = (firstScore + secondScore + thirdScore + fourthScore+ fifthScore) / 5;
//
//Display average
cout << fixed << setprecision(1) << average;
return 0;
}