// Castulo Jason Quintero CSC5 Chapter 5 homework, pg. 294 #5
//
/**************************************************************************
* Display Membership Fee Increase
* ________________________________________________________________________
* This program computes and displays fee increase for a
* country club over the next six years
* ________________________________________________________________________
* INPUT
* YEARLY_CHARGE : Fee charge per year
* INCREASE : Fee Increase per year
*
* OUTPUT
* total : Yearly total of fee and price increase
*
*
*************************************************************************/
#include <iostream>
#include <iomanip>
using namespace std;
int main()
{
// variables
const float YEARLY_CHARGE = 2500, // Yearly fee
INCREASE = 0.04; // Yearl Increase
float total = YEARLY_CHARGE;
cout << "Yearly membership fee increase" << endl;
cout << "------------------------------" << endl;
// for loop to display increase
for (int i = 0; i < 6; i++)
{
cout << "Year " << i+1 <<": " << "\t\t\t\t $"<< total << endl;
total += (YEARLY_CHARGE * INCREASE);
} // end of for loop
return 0;
}