Already have an account? Get multiple benefits of using own account!
Login in your account..!
Remember me
Don't have an account? Create your account in less than a minutes,
Forgot password? how can I recover my password now!
Enter right registered email to receive password!
My code needs to have the following elements: 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. Need 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. My code works correctly EXCEPT it does not print the "tax rate"(%) as required
def tax(income):
di={0:10,1:15,2:20,3:30}
total_tax=0
if(income<500):
total_tax=di[0]*income
elif(income<1500 and income >=500):
total_tax=di[1]*income
elif(income<2500 and income >=1500):
total_tax=di[2]*income
else:
total_tax=di[3]*income
return total_tax
print("Enter income to calculate tax.")
n=int(input('Enter income :'))
while(n!=-1):
print("Calculated tax is : ","%.2f"%tax(n))
print('Bye')
Assume season-ticket prices in the lower bowl for the Buffalo Bills will rise from $495 for a 10-game package to $770. Fans sitting in the best seats in the upper deck will pay an increase from $310 to $555. Don Manning plans to purchase 4 season ..
sketch the curves given by the following parametric equations find corresponding cartesian equations if possible.a in
A wooden artifact contains 65% of the Carbon-14 that is present in living trees. How long ago was the artifact made?(the half-life of Carbon-14 is 5730 years.)
Find the indicated function value - What does the vertical asymptote - What percentage of the Ippizuti fish can you remove
Use the quadratic formula to find out how long after the rocket is launched it will hit the ground. Round to the nearest tenth of a second.
Suppose that the monthly mortgage payments of all homeowners have a normal distribution. What is the mean monthly mortgage paid by all homeowners?
Jack babysat 2 hours each night for 10 nights.she earned a total $180 babysitting.Jack wants to calculate her hourly rate.How much did jack earn per hour babysitting?
Joshua, a merchant, promises in a signed writing to Pedro, a consumer, to hold an offer to sell goods open for five months. However, Joshua sells the goods to another consumer and Pedro sues him for breach of contract. Which of the following is tr..
A total of $8,500 was invested in three interest earning accounts. The interest rates were 2%, 3%, and 6%. If the total simple interest for one year was $380 and the amount invested at 6% was equal to the sum of the amounts in the other two accoun..
How much must Johnny Williams invest today to have an amount equivalent to investing $2,800 at the end of every six months for the next 15 years.
If A and B are 3 × 3 matrices with det(A) = 4 and det(B) = 1. What is the determinant of C = 2AT A-1BA
After getting a 15% discount on the price of a new chrysler sebring convertible, Helen paid $27,000. What was the original price of the convertible to te nearest dollar?
Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!
whatsapp: +1-415-670-9521
Phone: +1-415-670-9521
Email: [email protected]
All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd