I'm trying to use if statemetns but i'm having trouble storing each amount in a particular variable and not having them over lap - and then add them up at the end to get my total?
Trying to do something like this
if (fedTotalPay>0 && fedTotalPay <=1000) fedtax =.10 * fedTotalPay; if (fedTotalPay >1000) (fedtax1 = (fedTotalPay -1000)) *.10; if (fedTotalPay >1000 && fedTotalPay <2500) (fedtax2 = (fedTotalPay -1500)) *.15; if (fedTotalPay >2500) (fedtax3 = (fedTotalPay -2500)) *.25; totalfedtax = fedtax+fedtax1+fedtax2+fedtax3;
Thank You

New Topic/Question
Reply


MultiQuote





|