//Andrew Alspaugh CS1A Chapter 3, P. 145. #3
//
/******************************************************************************************
*
* Calculate Test Average to 1 Fixed Point
*_________________________________________________________________________________________
* This program calculates and displays the average of 5 test scores
* ________________________________________________________________________________________
* INPUT:
* Score1 //Test score
* Score2 //Test score
* Score3 //Test score
* Score4 //Test score
* Score5 //Test score
*
* OUTPUT:
* AverageScore //Average score
* ***************************************************************************************/
#include <iostream>
#include <iomanip>
using namespace std;
int main()
{
//Input test scores
float Score1; //Input - Test Score
float Score2; //Input - Test Score
float Score3; //Input - Test Score
float Score4; //Input - Test Score
float Score5; //Input - Test Score
int TotalTests; //Input - Amount of Tests
TotalTests = 5;
//Declare scope of Average
float AverageScore; //Output - Average score
//Input Scores
cout << "Enter test 1 score" << endl;
cin >> Score1;
cout << "Enter test 2 score" << endl;
cin >> Score2;
cout << "Enter test 3 score" << endl;
cin >> Score3;
cout << "Enter test 4 score" << endl;
cin >> Score4;
cout << "Enter test 5 score" << endl;
cin >> Score5;
//Process for Average
AverageScore = (Score1 + Score2 + Score3 + Score4 + Score5)/ TotalTests;
//Output Average
cout << fixed << setprecision(1);
cout << "Average Test Score is " << AverageScore;
return 0;
}