Write your question here.
Ok, so I am new to programming and have spent 6 hours trying to write the formula for POP = 5.5 * e raised to power of (.02(year-2000)).
I keep getting an error even when I try to define "e".
I use the files iomanip and cmath and keyword double with variables pop, and year.
I don't need anyone to do my homework for me, just let me know where I am wrong, or better yet give me a hint on how I can fix it.
Put the code you need help with here.
#include <iostream>
#include <cmath>
#include <iomanip>
usingnamespace std;
int main()
{
#define const e = 2.71828182846
double pop,year;
cout << "\n Type the year for the population you would like to know: " ;
cin >> year;
pop = 5.5 * e * pow(0.02(year-2000);
cout << "\n The population of the earth in 2020 will be: " << pop << "\n";
system("PAUSE");
return 0;
}