Hello, I am new to C++ programming. I need to do this problem for a class but I'm a bit stuck, it's giving me many errors, could anyone point out what the problem is please?
This is the problem: 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.
And this is what I have so far:
#include<iostream>
using namespace::std;
int main()
{
int counter, total, fee;
counter = 1;
while (counter <= 6) {
cout>> "Enter initial payment: ";
cin>>total;
fee = 4/100*total;
total = total + fee;
counter = counter + 1;
}
cout << "The total per year is: " << total << endl;
return 0;
}