
-----------------------------------
antitru5t
Tue Feb 17, 2009 10:11 pm

Java:: Output errors?
-----------------------------------
I am currently working on a JAVA Assignment and I am HAVING A TERRIBLY HARD TIME WORKING THROUGH IT. Please help me. ...

Here are the business rules to my problem::

If the pay is from 0.00 to 399.99, the tax rate should be 7%.
If the pay is from 400.00 to 899.99, the tax rate should be 11%.
If the pay is from 900.00 and up, the tax rate shouldbe 15%.

The proper output should be something like this when numbers are entered from the SCANNER::

Enter number of hours worked (0.00) : 39
Enter first number of hours straight (integer or 0 to disable): 40
Enter hourly rate of worker (00.00): 10
===================================================
Here is how my EXACT output should be like::

=================================================
Gross pay is: $390.00
Tax is : 7%
Net pay is : $362.70

--------------------------------------------------------------

am not getting the correct output like this... Instead, I HAVE A HUGE, HECTIC PROBLEM that has startled me for hours. I am getting an output like this:

Gross pay is: ($356.00) 