Placeholder

ITS320 Module 3 Option 2 : Creating a Program to Calculate Weekly Average Tax Withholding

$5.00

Description

Assignment Instructions
Create a program that will calculate the weekly average tax withholding for a customer, given
the following weekly income guidelines:
• Income less than $500: tax rate 10%
• Incomes greater than/equal to $500 and less than $1500: tax rate 15%
• Incomes greater than/equal to $1500 and less than $2500: tax rate 20%
• Incomes greater than/equal to $2500: tax rate 30%
Store the income brackets and rates in a dictionary.
Write a loop that prompts the user for an income, looks up the tax rate from the dictionary, and
prints the income, tax rate, and tax. The loop runs indefinitely until the user enters a loop
termination sentinel.
Develop Python code that implements the program requirements.
Assignment Submission Instructions
• Submit a text file containing your Python code into the Module 3 drop box. Name your file ITS320_CTA3_Option1
SCREENSHOTS
SOLUTION
PAYMENT
ITS 320 Module 3 Option 2
The solution includes source code and screenshot.
Attachments [Move over files to preview content of those files]
ITS320-MODULE3-OPTION2.zip (20.43 KB)
ITS320-MODULE3-OPTION2-SCREENSHOT.png
ITS320_CTA3_Option2.py
Preview ITS320_CTA3_Option2.py
xx __xxxx__ == “__xxxx__”:
xxx_xxxx = {
0: 10, # xxxxxx xxxx xxxx $500: xxx xxxx 10%
500: 15, # xxxxxxx xxxxxxx xxxx/xxxxx xx $500 xxx xxxx xxxx $1500: xxx xxxx 15%
1500: 20, # xxxxxxx xxxxxxx xxxx/xxxxx xx $1500 xxx xxxx xxxx $2500: xxx xxxx 20%
2500: 30 # Incomes greater than/equal to $2500: tax rate 30% } while True: print (‘Enter the income or value less than 0 to exit:’) income = int(input()) if income < 0: break # xxxx xxx x xx xxxxxx(xxxx(xxx_xxxx.xxxx()), xxxxxxx=xxxx): xx xxxxxx >= x:
xxxxx (‘xxxxxx: $%x’ % xxxxxx)
xxxxx (‘xxx xxxx: %x’ % (xxx(xxx_xxxx[x]) + ‘%’))
xxx = xxxxxx * xxx_xxxx[x] / 100.0
Price: $9
Buy Now
Checkout
Added to cart
Add to Cart
Checkout
Added to cart
Note: We offer a discount for buyers who purchase multiple items.
You May Also Like:
ITS320 Module 1 Option 1 Create a Python Application that outputs mouse
ITS320 Module 1 Option 2 Create a Python Application that read two integers and print two lines
ITS320 Module 2 Option 1 Creating a Python Application for string validation
ITS320 Module 2 Option 2 Creating a Python Application using dictionary
ITS320 Module 3 Option 1 Creating a Program to Calculate the Value of a Ferrari
ITS320 Module 4 Option 1 Repetition Control Structure – Five Floating Point Numbers
ITS320 Module 4 Option 2 Repetition Control Structure – Grade Statistics

Reviews

There are no reviews yet.

Only logged in customers who have purchased this product may leave a review.