Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

In this lab, we will learn to: 1 . Use logical operators to construct Boolean expressions 2 . Use selection statements to make choices in

In this lab, we will learn to:
1. Use logical operators to construct Boolean expressions 2. Use selection statements to make choices in a program
(a) if
(b) if-else
(c) nested if-else
In the table below are the first three rows of the 2023 Federal Income Tax Brackets and Rates
Tax Rate 10%12%22%
Single filers
$0 to $11,000 $11,001 to $44,725 $44,726 to $95,375
Married filers
$0 to $22,000 $22,001 to $89,450 $89,451 to $190,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 2023 year based on these two inputs.
Since we are only using 3 of the 7 rows of the 2023 Federal Income Tax Brackets and Rates, it is possible 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
Extension: (This is not part of your lab. Its just for fun.)
We used only the first three rows of the 2023 Federal Income Tax Brackets and Rates. Extend your program
to include the entire table. click here to view the entire table.
Additionally, filers will receive a standard deduction based on their filing status. This can be viewed at the
link above. Incorporate the standard deduction into your program. 1

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

DB2 11 The Database For Big Data And Analytics

Authors: Cristian Molaro, Surekha Parekh, Terry Purcell, Julian Stuhler

1st Edition

1583473858, 978-1583473856

More Books

Students also viewed these Databases questions