Your Perfect Assignment is Just a Click Away

We Write Custom Academic Papers

100% Original, Plagiarism Free, Customized to your instructions!

glass
pen
clip
papers
heaphones

Python Programming Functions and Selection Statements Homework Lab 2

Python Programming Functions and Selection Statements Homework Lab 2

Learning outcomes

  • Gain experience writing a Python function.
  • Gain experience writing Python selection statements.

Assignment

  • Download taxes.py and rename it according to the instructions above.
  • Modify the program by adding the missing function. The missing function will use Python selection statements to calculate the amount of tax that a single (unmarried) taxpayer owes using the table below.

If the missing function is implemented correctly, this output will appear.

Note: the federal tax is progressive. For example, if a person has a taxable income of 15,000, the first 9,700 is taxed at a rate of 10% and the remaining 5,300 is taxed at a rate of 12%.

Rate For Unmarried Individuals, Taxable Income Over
10% $0
12% $9,700
22% $39,475
24% $84,200
32% $160,725
35% $204,100
37% $510,300

Grading – 10 points

  • 7 points – Your program calculates the income tax for each of the seven test cases correctly (1 point each).
  • 3 points – A function with the correct name (1 point), correct parameters (1 point) and correct return value (1 point) is used in the solution.

Order Solution Now

Our Service Charter

1. Professional & Expert Writers: Assignment Geeks only hires the best. Our writers are specially selected and recruited, after which they undergo further training to perfect their skills for specialization purposes. Moreover, our writers are holders of masters and Ph.D. degrees. They have impressive academic records, besides being native English speakers.

2. Top Quality Papers: Our customers are always guaranteed papers that exceed their expectations. All our writers have +5 years of experience. This implies that all papers are written by individuals who are experts in their fields. In addition, the quality team reviews all the papers before sending them to the customers.

3. Plagiarism-Free Papers: All papers provided by Assignment Geeks are written from scratch. Appropriate referencing and citation of key information are followed. Plagiarism checkers are used by the Quality assurance team and our editors just to double-check that there are no instances of plagiarism.

4. Timely Delivery: Time wasted is equivalent to a failed dedication and commitment. Assignment Geeks is known for timely delivery of any pending customer orders. Customers are well informed of the progress of their papers to ensure they keep track of what the writer is providing before the final draft is sent for grading.

5. Affordable Prices: Our prices are fairly structured to fit all groups. Any customer willing to place their assignments with us can do so at very affordable prices. In addition, our customers enjoy regular discounts and bonuses.

6. 24/7 Customer Support: At Assignment Geeks, we have put in place a team of experts who answer all customer inquiries promptly. The best part is the ever-availability of the team. Customers can make inquiries anytime.