If the person is a landlord the rent collected is added to taxable income, the taxable income is reduced by the amount of donations to charity. If the person has children the taxable income is reduced by 500.00 for each child. The income tax due is 30% of the taxable income.
Input: annual pay,interest earned, rent, donations, number of dependent children
Output: Either the amount of tax due,or if the taxable income is zero or less, the statement NO TAX DUE.