hi, im making a static float method and i couldn't figure out the error i'm getting: invalid method declaration; return required
Is there anyone can help with this
static calcTaxes(float grossPay)
{
float netPay ;
if (grossPay <= 300)
netPay = (float) (grossPay - (grossPay * 0.15));
if (grossPay <= 450)
netPay = (float)(grossPay - (grossPay * 0.20));
else if (grossPay > 450)
netPay = (float)(grossPay - (grossPay * 0.25));
}