I need help work wil not compile
this is what I have to do.
Write a program that calculates and prints the monthly paycheck for an employee. The net pay is calculated after taking the following deductions (define these as constant variables):
Federal Income Tax: 15%
State Tax: 3.5%
Social Security Tax: 5.75%
Medicare/Medicaid Tax: 2.75%
Pension Plan: 5%
Health Insurance: $75.00

#include <iostream>


//using namespace std;

int main()
{  
    
char employee;
double gross;
double federal;
double state; 
double ss;
double med;
double pension;
double health;
double net;


cout << "Enter Gross Amount : 3575" << endl;
cin >> gross;
cout << "Enter Employee Name : Doe" << endl;
cin >> employee;

gross = (federal + state + ss + med + pension + health + net);
cout << "Gross " << gross << endl;
federal = (gross * .15);
cout << "Federal Tax" << federal << endl;
state = (gross * .035);
cout << "State Tax" << state << endl;
ss = (gross * .0575);
cout << "Social Security Tax" << ss << endl;
med = (gross * .0275);
cout << "Medicare/Medicaid Tax" << med << endl;
pension = (gross * .05);
cout << "Pension Plan" << pension << endl;
health = 75.00;
cout << " Health Insurance" << health << endl;
net = (gross - (federal + state + ss + med + pension + health));
cout << "Net Pay" << net << endl;

 
cin<< "Press q and then Enter to quit-->";
char dummy;
cin>>dummy;                          //Wait for input


return 0;
}

>>I need help work wil not compile
Same questions as I posted in your other thread. I'm not a mind reader and I can't see your monitor.

Here are the errors what do they mean help me pleeese. Thanks dragon for all you are doing.

In function `int main()':
30: error: `cout' undeclared (first use this function)
30: error: (Each undeclared identifier is reported only once for each function it appears in.)
30: error: `endl' undeclared (first use this function)
31: error: `cin' undeclared (first use this function)

This article has been dead for over six months. Start a new discussion instead.