Question: using python 1) [20 marks] Write a function named get_income that takes no parameters. This function asks the user to enter a taxable income for

using python
using python 1) [20 marks] Write a function named get_income that takes
no parameters. This function asks the user to enter a taxable income

1) [20 marks] Write a function named get_income that takes no parameters. This function asks the user to enter a taxable income for the 2018 tax year. The user may enter a number with or without a comma, e.g. 123456 or 123,456 . This function must return an integer. For example: get_income() Enter the amount of taxable income: $123456 123456 get_income() Enter the amount of taxable income: $123,456 123456 2) [30 marks] Write a function called fed_tax_calc that takes as a parameter an integer representing faxable income. This function should calculate the federal tax owing using the following brackets: - 15% on the first $50,197 of taxable income, plus - 20.5% on the next $50,195 of taxable income (on the portion of taxable income over 50,197 up to $100,392 ), plus - 26% on the next $55,233 of taxable income (on the portion of taxable income over $100,392 up to $155,625), plus - 29% on the next $66,083 of taxable income (on the portion of taxable income over 155,625 up to $221,708 ), plus - 33% of taxable income over $221,708 This function returns an integer. integer representing taxable income. This function should calculate the Alberta tax owing using the following brackets: - 10% on the portion of your taxable income that is $131,220 or less, plus - 12% on the portion of your taxable income that is more than $131,220 but not more than $157,464, plus - 13% on the portion of your taxable income that is more than $157,464 but not more than $209,952, plus - 14% on the portion of your taxable income that is more than $209,952 but not more than $314,928, plus - 15% on the portion of your taxable income that is not more than $314,928 This function returns an integer. 4) [20 marks] Write a function named main that takes no parameters, calls the other 2 functions to get a taxable income from the user, calculates the federal and Alberta taxes owing, displays these as well as the total tax owing. (If tax owing is greater than $999, commas must be used, e.g. \$2,341). This function returns None. For example: 1ss [evaluate Lob_2 ic. py] B as moino Enter the onount of taxoble incone: \$123456 In 2018, the taxes owing on a taxable income of 5123,456 mould be: Federal tax: $23,816 Alberta tax: $12,345 3oss mino Totel tax: 536,161 Enter the onount of taxable incose: 5123,456 In 2918, the taxes orving on o taxable incone of $123,456 mould be: Federol tax: \$23,816 Alberto tax: $12,345 Totel tax: $36,161 noino Enter the anount of taxoble incone: 3243,846 In 2018, the taxes owing on a taxable incooe of 5243,346 mould be: Federal tax: 558,649 Alberto tax: $27,839 Total tax; 586,485

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!