//Zachary Abdollahi                 CS1A                   Chapter 3, P. 143, #3
//
/*******************************************************************************
 *
 *	COMPUTE TEST AVERAGE
 * _____________________________________________________________________________
 * 
 *	This program asks the user for five test scores and calculates the average
 * test score.
 * 
 *	Computation is based on the formula:
 *	Average = (Score1 + Score2 + Score3 + Score4 + Score5) / 5
 * _____________________________________________________________________________
 * 
 *	INPUT
 *	  score1, score2, score3, score4, score5 : Test scores
 * 
 *	OUTPUT
 *	  average          : Average test score
 * 
 ******************************************************************************/
#include <iostream>
#include <iomanip>
using namespace std;
int main ()
{
	float score1;				//INPUT  - First test score
	float score2;				//INPUT  - Second test score
	float score3;				//INPUT  - Third test score
	float score4;				//INPUT  - Fourth test score
	float score5;				//INPUT  - Fifth test score
	float average;				//OUTPUT - Average test score
	
//
//	Get Input From User
	cout << "Enter the first test score: ";
	cin >> score1;
	
	cout << "Enter the second test score: ";
	cin >> score2;
	
	cout << "Enter the third test score: ";
	cin >> score3;
	
	cout << "Enter the fourth test score: ";
	cin >> score4;
	
	cout << "Enter the fifth test score: ";
	cin >> score5;
	
//
//	Compute Average Test Score
	average = (score1 + score2 + score3 + score4 + score5) / 5;

//
//	Output Result
	cout << fixed << setprecision(1);
	cout << "The average test score is " << average << endl;
	
	return 0;
}