When i try my program i get an input screen but no output screen, i dont know what to do, How do i make it work?
the output screen should display the following:
Hours Worked : (number)
Hourly Rate: (number)
Tax Rate: (number)
Gross Pay: (number)
Taxes: (number)
Net Pay: (number)
code:
#include <iostream>
using namespace std;
int main()
{
double x,y,taxrate,grosspay,tax,netpay;
You had a few things that messed up the program. The main one was while(grosspay>=0) Since grosspay never decreases, you would always be in the loop. But, even without that, you have a bunch of else( with a misplaced semi-colon, which terminates that statement, that should have been elseif(1500<=grosspay && grosspay < 2000).
Here is the program with those small problems, removed.