Question: I need this code with a Do/While Statement C++. /*Membership Fees Increase A country club, which currently charges $2,500 per year for membership, has announced
I need this code with a Do/While Statement C++.
/*Membership Fees Increase
A country club, which currently charges $2,500 per year for membership, has announced it will increase its membership fee by 4% each year for the next six years. Write a program that uses a loop to display the projected rates for the next six years.*/
//
//
#include
using namespace std;
int main() {
double price = 2500;
double rate = 4;
for (int i=1;i<=6;i++){
cout<<"Membership rate for "<
price = price + price* rate/100;
}
return 0;
}
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
