I am having trouble trying to finish this program, What I am suppose to do is make a loop program that should ask the user for the employees number, gross pay, state tax, federal tax, and FICA withholdings. The loop will terminate when 0 is entered for the employee number. After the data is entered, the program should display totals for gross pay, state tax, federal tax, FICA withholdings, and net pay. I can't except any negative number and I can't accept the value of the state, federal, or FICA withholdings to be greater than the gross pay, if it is print the error massage
I know I don't have all of my display totals code in, but what I am having trouble is on the terminating the code if a 0 is entered for the employees number, and I am not suppose to accept any negative number for any of this program. I don't remember how to do it. Can someone please help me out.
# include <iostream>
using namespace std;
int main()
{
int employee;
int gross;
int state;
int federal;
int FICA;
cout << "WEhat is the employees number " << endl;
cin >> employee;
for ( employee = 1; employee >=, employee ++)
cout <<"What is there gross pay" << endl;
cin >> gross;
cout << "What is there state tax " << endl;
cin >> state;
cout << "What is there federtal tax" << encl;
cin >> federal;
cout << "What is there FICA" << endl;
cin >> FICA;
if (state + federal + FICA) > gross;
cout << "YOu are taking to much out of the persons check, please redo" << endl;
cout << " Your employee number is" << employee << endl;
return 0;
}