Reference no: EM131383292
Write a program which computes the amount tax to be paid based on the following rule. The tax is:
* No tax if your income is less than or equal to $50,000 (inclusive)
* 5% if the income is over $50,000 up to 75,000 (inclusive)
* 7% if the income is over &75,000 up to 100,000 (inclusive)
* 10% if the income is over $100,000.
The program asks a user to enter his/her income and computes the amount of tax payable, as shown below (use the following test case for submission):
Enter the income: 125000
The tax payable would be 12500.0
Part B) P.3.25 (page 154); Due by Sunday, Feb 5th
Hint: review the code example (taxes.py) in section 3.3
Use the following test case (run your code with both test cases below):
Are you married or single (M or S)? M
What is your income? 78000
Your tax payable is 12300.0
Run your program with another test case:
Are you married or single (M or S)? S
What is your income? 28000
Your tax payable is 3800.0
For final electronic submission:(due by Sunday)
* One zip file (two python files for Part A and Part B).
* One PDF report file ( source code part A + execution result + source code part B + execution results (two test cases))
* In summary, I expect to see two files: one zip file + one PDF file.
* Please name your files appropriately. For example, yourFirstName-LastName-HW2.PDF, FirstName-LastName-HW2-PartA.py, FirstName-LastName-HW2-PartB.py, etc.
Quality function deployment
: What is QFD (Quality Function Deployment)? Explain and illustrate with an example how quality function deployment translates customer desires into product/service attributes.
|
Find time average of the appararent weight of the hourglass
: Show that, if a system moves from one state of rest to another over a certain time interval, then the average of the total external force over this time interval must be zero.- Find the time average of the appararent weight of the hourglass over th..
|
Processes using statistical quality control
: Q1: Identify all of the areas of a consumer products company in which statistical quality control can be applied. How do you measure effectiveness of processes using statistical quality control?
|
What frequencies are produced at its output
: A transmitter operates with a carrier frequency of 7.2 MHz. It is amplitude modulated by two tones with frequencies of 1500 Hz and 3000 Hz. What frequencies are produced at its output?
|
Write a program which computes the amount tax to be paid
: Write a program which computes the amount tax to be paid based on the following rule. The tax is:No tax if your income is less than or equal to $50,000 (inclusive).5% if the income is over $50,000 up to 75,000 (inclusive). 7% if the income is over &7..
|
Would it help if he juggles his balls while he crosses
: The juggler wishes to cross a shaky bridge that cannot support the combined weight of the juggler and his balls. Would it help if he juggles his balls while he crosses?
|
Assessment of legislative roles
: Given the readings this week, you now have an understanding of the legislative and judicial branches. Write a paper examining the roles of the legislative branch in health policy. Describe how this branch needs to relate to other stakeholders and ..
|
Show boat will eventually come to rest
: If the water offers a resistance to the motion of the boat proportional to the velocity of the boat, show that the boat will eventually come to rest at its orginal position.
|
Risk manager for orlando radiology
: You are the risk manager for Orlando Radiology. Your organization operates 10 medical imaging facilities throughout the Orlando, FL region. As the risk manager, you are responsible for safety, risk management, insurance programs, and workers' comp..
|