Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Personal allowances are $12/00 for a single person and $23, 000for married perso

ID: 3614584 • Letter: P

Question

Personal allowances are $12/00 for a single person and $23, 000for married person. A child allowance is $1, 000 per child. Taxableincome is the amount remaining after deducting the personalallowance and total child allowance from the gross salary.

Income tax is calculated from the Taxable income according tothe following table:

Taxable Income on

Percentage tax on Taxable Income

$10,000 & under

No tax

Greater than $10,000, but not exceeding $20,000

20%

Greater than $20,000, but not exceeding $40,000

30%

Above $40,000

40%

Taxable Income on

Percentage tax on Taxable Income

$10,000 & under

No tax

Greater than $10,000, but not exceeding $20,000

20%

Greater than $20,000, but not exceeding $40,000

30%

Above $40,000

40%

Explanation / Answer

Assuming I correctly understand your problem, here is what youshould do: ------------------- var s_personal_allowance = 12000 var m_personal_allowance = 23000 var child_allowance = 1000 var array name(50) var array income(50) var array taxable_income(50) var array total_allowance(50) var array children(50) var array m_status(50) var array income_tax(50) for x = 1 to 50      input name(x)      input income(x)      input children(x)      input m_status(x)      if m_status(x) = "single"           total_allowance(x) = (children(x) * child_allowance) +s_personal_allowance      endif      if m_status(x) = "married"           total_allowance(x) = (children(x) * child_allowance) +m_personal_allowance      endif      taxable_income(x) = income(x) -total_allowance(x)      if taxable_income(x) > 10,000 andtaxable_income(x) 20,000 andtaxable_income(x) 40,000           income_tax(x) = taxable_income(x) * 0.4      endif endfor for x = 1 to 50       print name(x)       print income(x)       print income_tax(x) endfor
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote