@  Here some example is mention.

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question

@@@

 Here some example is mention. 

 

PROBLEM 3
if-elif selection statements (entsatnts)
Below are the 2021 federal income tax brackets for individual filings due in April 2022.
Single Filers
Tax rate Taxable income bracket
10% S$9,950
12% > $9,950 to $40,525
22% > $40,525 to $86,375
24% > $86,375 to $164,925
32%
Tax owed
10% of taxable income
$995 plus 12% of the amount over $9,950
$4,664 plus 22% of the amount over $40,525
$14,751 plus 24% of the amount over $86,375
$33,603 plus 32% of the amount over $164,925
$47,843 plus 35% of the amount over $209,425
$157,804.25 plus 37% of the amount over $523,600
> $164,925 to $209,425
35% > $209,425 to $523,600
37% > $523,600
Write a program that asks the user to input their 2021 income. Calculate and print the
amount of tax owed. Use input-processing-output notation in your comments.
Here are some sample runnings of the program. User input is underlined:
Example 1
Enter income from 2021: $10000
You owe $1,001.00 in taxes for income earned in FY2021.
Example 2
Enter income from 2021: $20000
You owe $2,201.00 in taxes for income earned in FY2021.
Example 3
Enter income from 2021: $75000
You owe $12,248.50 in taxes for income earned in FY2021.
Example 4
Enter income from 2021: $1000000
You owe $334,072.25 in taxes for income earned in FY2021.
Transcribed Image Text:PROBLEM 3 if-elif selection statements (entsatnts) Below are the 2021 federal income tax brackets for individual filings due in April 2022. Single Filers Tax rate Taxable income bracket 10% S$9,950 12% > $9,950 to $40,525 22% > $40,525 to $86,375 24% > $86,375 to $164,925 32% Tax owed 10% of taxable income $995 plus 12% of the amount over $9,950 $4,664 plus 22% of the amount over $40,525 $14,751 plus 24% of the amount over $86,375 $33,603 plus 32% of the amount over $164,925 $47,843 plus 35% of the amount over $209,425 $157,804.25 plus 37% of the amount over $523,600 > $164,925 to $209,425 35% > $209,425 to $523,600 37% > $523,600 Write a program that asks the user to input their 2021 income. Calculate and print the amount of tax owed. Use input-processing-output notation in your comments. Here are some sample runnings of the program. User input is underlined: Example 1 Enter income from 2021: $10000 You owe $1,001.00 in taxes for income earned in FY2021. Example 2 Enter income from 2021: $20000 You owe $2,201.00 in taxes for income earned in FY2021. Example 3 Enter income from 2021: $75000 You owe $12,248.50 in taxes for income earned in FY2021. Example 4 Enter income from 2021: $1000000 You owe $334,072.25 in taxes for income earned in FY2021.
Expert Solution
steps

Step by step

Solved in 3 steps with 2 images

Blurred answer
Similar questions
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY