/*-------
  Signature: main: void -> int

  Purpose: to give a first example of cin --
  	asks the user to enter a numeric average,
  	then reads it in and prints it to the screen

  Examples: when this is run, if, when prompted, the user types:
45.3
            ...followed by enter,
            then this should print to the screen:
You entered the average 45.3!

            when this is run, if, when prompted, the user types:
67
            ...followed by enter,
            then this should print to the screen:
You entered the average 67!

  by: Sharon Tuttle
  last modified: 2016-11-04
--------*/

#include <cstdlib>
#include <iostream>
#include <string>
#include <cmath>
// #include "called_below.h"
using namespace std;

int main()
{
    cout << boolalpha;

    double num_avg;

    //  ask the user to enter an average

    cout << "Enter a numeric average, followed by enter: ";

    // read in what the user types

    cin >> num_avg;

    // print out the average they typed

    cout << "You entered the average "
         << num_avg
         << "!"
         << endl;

    return EXIT_SUCCESS;
}