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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!