Nama NIM
: Fajar Saputra Tubagus : 17101103039
TaxableIncome = input('Please provide taxable income in Austrian Dollars : $ '); IncomeTaxbefore = 0; MedicareLevy = (TaxableIncome*0.015);
if IncomeTaxbefore > 0 && MedicareLevy > 0 end if TaxableIncome >= 0 end if TaxableIncome >= 0 && TaxableIncome <= 6000 elseif TaxableIncome > 6000 && TaxableIncome <= 20000 IncomeTax = 0.015*(0.17 *(TaxableIncome <= 20000)); elseif TaxableIncome > 20000 && TaxableIncome <= 50000 IncomeTax = 0.015*(2380+0.30*(TaxableIncome <= 50000)); elseif TaxableIncome > 50000 && TaxableIncome <= 60000 IncomeTax = 0.015*(11380+0.42*(TaxableIncome-50000)); elseif TaxableIncome > 60000 IncomeTax = 0.015*(15580+0.47*(TaxableIncome-60000)); end
TotalTax = IncomeTax + MedicareLevy; fprintf ('Income Tax is $ %f.\n', IncomeTax); fprintf ('Medicare Levy is $ %f.\n', MedicareLevy); fprintf ('Total Tax is $ %f.\n', TotalTax);