Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Given the Federal Income Tax Rates chart located below, Tax rate Taxable income threshold 1 5 % $ 5 5 , 0 0 0 or

Given the Federal Income Tax Rates chart located below,
Tax rate Taxable income threshold
15% $55,000 or less
21% $55,001 up to $111,000
26% $111,001 up to $173,000
29% $173,001 up to $246,000
33% $246,001 or higher
Code the function that accepts ONE gross salary and returns net salary and tax rate as a string percent as a tuple:
NOTE: you are required to add the neccessary paramaters, method body and return statement.
NOTE: The method can accept string and int values (no float values)
NOTE: the salary will only accept whole values for the gross salary value
NOTE: the net value should be rounded to the nearest whole number. Remove all decimal values
NOTE: error handling is not expected of you, assume that if the value passed is a string value, all characters will be 0-9
>>> task1(100000)
(79000,'21%')
>>> task1(180000)
(127800,'29%')
>>> task1(250000)
(167500,'33%')
>>> task1('23456')
(19938,'15%')
>>> task1('55000')
(46750,'15%')

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

OpenStack Trove

Authors: Amrith Kumar, Douglas Shelley

1st Edition

1484212215, 9781484212219

More Books

Students also viewed these Databases questions