|
-
March 1st, 2010, 01:43 PM
#1
Monthly tax program
Hi guys, I have to write a monthly charge program where you it asks for the user to enter the month year and income, and the program will calculate it product sales tax with the equation S=T/1.06. But i keep getting the error "total doesnt have a ;" and "total is used before its value is set".
so far i have
#include <iostream>
using namespace std;
int main ()
{
int sales , total , year;
char month[10];
cout << "Please enter the month for this report:";
cin >> month;
cout << "Please enter the year for this report:";
cin >> year;
cout << "Please enter the total income for this month:"
cin >> total;
sales = total / 1.06;
cout << "The sales amount is "<< sales << endl;
return 0;
}
Please help
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|