// Cameron Pham CS1A chapter 2, p. 81, #6
//
/******************************************************************************
*
* Displays Total Annual Pay of Employee
*
* _____________________________________________________________________________
* This program computes and displays an employee's annual pay and defines the
* variables that identifies how much the employee earns each pay period, the
* number of pay periods in a year, and the total annual pay.
*
* Computation is based on the formula:
* annualPay = payAmount * payPeriods
* _____________________________________________________________________________
* INPUT
* payAmount = amount of pay earned each pay period ($1700.0)
* payPeriods = number of pay periods in a year (26)
*
* OUTPUT
* annualPay = total annual pay
*
* ****************************************************************************/
#include <iostream>
using namespace std;
int main() {
double payAmount; // INPUT = pay earned each pay period
double payPeriods; // INPUT = number of pay periods each year
double annualPay; // OUTPUT = total annual pay
// Initializing Program Variables
payAmount = 1700.0;
payPeriods = 26;
// Computing Pay
annualPay = payAmount * payPeriods;
// Final Output
cout << "Total annual pay = $" << annualPay << endl;
return 0;
}