Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Tax laws are incredibly complicated. In order to help cope, you will write a PYTHON program to do some of the heavy lifting. Your program

Tax laws are incredibly complicated. In order to help cope, you will write a PYTHON program to do some of the heavy lifting. Your program should accept as input the amount of income made by the user in the past year, the marital status of the user (single/married), and the current elevation of the users home address (below/at/above sea level). Your program should produce as output the amount of income tax owed for that year.

The process for calculating the amount of tax owed is as follows:

Yearly Income

  • If the yearly income is less than $10,000, income tax is 2.3% of income
  • If yearly income is greater than or equal to $10,000 but less than or equal to $50,000, income tax is 4.5% of income
  • If yearly income is greater than $50,000, income tax is 6.1% of income

Marital Status:

  • If the user is single, no changes are made
  • If the user is married, $24.62 is subtracted from the income tax

Current Elevation:

  • If the user lives below sea level, they are either a fish or a cave person, and processing fees are applied. $18.32 is added to the income tax.
  • If the user lives at or above sea level, no changes are made

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_2

Step: 3

blur-text-image_3

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

Genomes Browsers And Databases Data Mining Tools For Integrated Genomic Databases

Authors: Peter Schattner

1st Edition

0521711320, 978-0521711326

More Books

Students also viewed these Databases questions

Question

1. How many moles are 3.201025 atoms of phosphorus

Answered: 1 week ago

Question

How many states in India?

Answered: 1 week ago

Question

HOW IS MARKETING CHANGING WITH ARTIFITIAL INTELIGENCE

Answered: 1 week ago

Question

Different types of Grading?

Answered: 1 week ago

Question

Explain the functions of financial management.

Answered: 1 week ago