I've barely skimmed over your code but wow.. okay first
QUOTE
CODE
double monthlyPay;
and
double [] monthlyPay = new double [11];
This just needs to be:
double[] monthlyPay = new double[11];
Now...
QUOTE
CODE
for (double Pay=1; Pay<12; Pay++)
{
if ArraySum Pay = 1 tax = double 0.1
else t = 0.25;
Tax = t * monthlyPay;
sum = sum + (t * monthlyPay);
System.out.println("error");
}
If statements that check if something equals something are formatted as follows:
CODE
if(something == whatYourCheckingForItToEqual)
/*the "==" is what you use to say equal to,
the code "something = whatYourCheckingForItToEqual" makes: something change its value to whatYourCheckingForItToEqual*/
{
doWhatIsInHere
}else
{
doWhatIsInHere
}
So with your code:
CODE
for (double Pay=1; Pay<12; Pay++)
{
if (ArraySum Pay = 1)
{
tax = double 0.1
}else
{
t = 0.25;
}
Tax = t * monthlyPay;
sum = sum + (t * monthlyPay);
System.out.println("error");
}
Okay now:
QUOTE
CODE
Tax = t * monthlyPay;
sum = sum + (t * monthlyPay);
1.)Tax, t, and tax are not the same thing. You must keep your capitals and variable name the same.
2.) You must initialize sum before making it equal something.
So you change it to:
CODE
tax = tax * monthly pay;
double sum = sum + tax;
Now take what I've said and see where you get... hopefully you will get
lesserrors...
@KYA
Lol, you finished before I did.
Didn't give him/her much though

.
I think that our thought are conflicting and are gonna make him/her more confused xD
Lets hope for the best and cross our fingers