/******************************************************************************
* AUTHOR : Aiden Stannard *
* STUDENT ID : 1284603 *
* Ch3, p143, #3 : Test Average *
* CLASS : CS1A *
* SECTION : T/Th 6PM - 8:20PM *
* DUE DATE : 9/12/2026 *
******************************************************************************/
/******************************************************************************
* CALCULATE Average Test Score
* ____________________________________________________________________________
* This program Calculates the Average test score out of fives test scores using
* by requesting the user to enter the scores one After the other, and than displaying
* the Average
*
* Computation is based on the formula: (Test + Test + Test + Test + Test) / 5
* ____________________________________________________________________________
* INPUT
* Enter the test scores for each one of your tests and press enter for every
* score youve entered:___
*
*OUTPUT
* Your Test Average was:___
*
******************************************************************************/
#include <iostream>
#include <iomanip>
using namespace std;
int main() {
float test1, test2, test3, test4, test5; // All fives test scores
float testAverage; // Test score average after computation
cout << "Enter the test scores for each one of your tests and press enter for every score youve entered:\n";
cin >> test1 >> test2 >> test3 >> test4 >> test5;
testAverage = (test1 + test2 + test3 + test4 + test5) / 5;
cout << setprecision(1) << fixed << "Your Test Average was: " << testAverage;
return 0;
}