Question: WRITE A PYTHON CODE In this lab, we will learn to use the following selection statements: 1. if 2. if-else 3. nested if-else In the

WRITE A PYTHON CODE

In this lab, we will learn to use the following selection statements: 1. if 2. if-else 3. nested if-else In the table below are the first three rows of the 2021-2022 Tax Brackets and Federal Income Tax Rates. Tax Rate Single filers Married filers 10% $0 to $9,950 $0 to $19,900 12% $9,951 to $40,525 $19,901 to $81,050 22% $40,526 to $86,375 $81,051 to $172,750 Your objective in this lab is to create a calculator that takes two inputs

1. Earned income 2. Marital status. and prints the amount of taxed owed for the 2021-2022 year based on these two inputs. Since we are only using 3 of the 7 rows of the 2021-2022 Tax Brackets and Federal Income Tax Rates, it is pos- sible to make too much income for this calculator to work properly. If thats the case, inform the user of such. There are some example outputs on the next page. These are your checkout criterion. Show me. After I give you the thumbs up, upload your .py file to D2L. Your file name should be Lab3 firstName lastName.py 1

THIS IS THE STUDENT TEMPLATE .

""" Your Name Date Description of what this program does """ import sys taxOwed = 0.0 earnedIncome = float(input("Enter the amount of income you earned in 2021: ")) if earnedIncome  

WRITE A PYTHON CODE In this lab, we will learn to use
the following selection statements: 1. if 2. if-else 3. nested if-else In
12:59 1 LTE X D2L Brightspace 1 of 2 - + 2 In that was then the mother Tas Hate Singel 3.12.1 1. www.us The Slow Ahere the weat. Your te weten 12:59 LTE D2L Brightspace le

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!