Question: Needed in Python 3 please. No advanced code or functions 1. Here are (slightly fictional) tax brackets Taxable Income S0-$6,000 $6,001-$37,000 $37.001-$80,000 Over $80,001 Tax

Needed in Python 3 please. No advanced code or functions

Needed in Python 3 please. No advanced code or functions 1. Here

1. Here are (slightly fictional) tax brackets Taxable Income S0-$6,000 $6,001-$37,000 $37.001-$80,000 Over $80,001 Tax on this income Nil 15 cents for each $1 over $6,000 4,650 plus 30 cents for each $1 over $37,000 $17,550 plus 37 cents for each $1 over $80,000 For example, suppose you make $90,000; then you fall into the 4th tax bracket which means you owe $17550+$.37 * (90000-80000) $21250.00 in taxes. Write function tax() that as an input takes your (taxable) income and then calculates and returns how much tax you owe >>>tax (5500) >>>tax (7000) 150 >>> tax (38000) 4950 >>>tax (81000) 17920 6. Write a loop that will repeatedly request whole numbers from the user. When the user enters 0, a report should be printed saying how many numbers were entered and their sum. The final 0 should not be counted as one of the numbers. Enter a number: 5 Enter a number: -1 Enter a number: 0 There were 2 numbers entered, totaling 4

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!