//Jacklyn Isordia CSC5 Chapter 5, P. 294, #05
//
/**************************************************************
*
* CALCULATE PROJECTED MEMBERSHIP FEES
* ____________________________________________________________
* This program displays the projected membership fees for a
* country club over the next six years, with a 4% annual
* increase.
* ____________________________________________________________
* INPUT
* None (Constants used for starting fee and rate)
* OUTPUT
* A table showing the projected membership fee for each
* of the 6 years.
* Formula
* membershipFee = membershipFee + (membershipFee * 0.04)
*
**************************************************************/
#include <iostream>
#include <iomanip>
using namespace std;
int main() {
double membershipFee = 2500.0;
const double INCREASE_RATE = 0.04;
cout << "Projected Membership Rates for the Next 6 Years" << endl;
cout << "_______________________________________________" << endl;
cout << fixed << showpoint << setprecision(2);
for (int year = 1; year <=6;year++) {
membershipFee += (membershipFee * INCREASE_RATE);
cout << "Year" << year << ": $" << membershipFee << endl;
}
return 0;
}