Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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  

image text in transcribed
image text in transcribed
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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Relational Database Design With Microcomputer Applications

Authors: Glenn A. Jackson

1st Edition

0137718411, 978-0137718412

More Books

Students also viewed these Databases questions

Question

Discuss managing conflict through a budget policy.

Answered: 1 week ago