Weekly average tax withholding for a customer

Assignment Help Business Management
Reference no: EM132072853

Assignment-

  • I need to make a program that calculates 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.
  • The final statement should prompt the user for an income and then looks up the tax rate from the dictionary and prints the income, tax rate, and tax.
  • Develop Python code that implements the program requirements.

Critique-

Thanks for your Module 3 Option #2 CT assignment submission.

Your program works properly to display the tax amount for an income but doesn't display the tax rate as is also required.

Here is my code:

def tax(income):

 di={0:.1,1:.15,2:.2,3:.3} # rate are st

 total_tax=0

 if(income<500):

  total_tax=di[0]*income

 elif(income<1500):

  total_tax=di[1]*income

 elif(income<2500):

  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))

 n=int(input('Enter income :'))

print('Bye')

Having troubles making it display that "tax rate"...Can you help?

Reference no: EM132072853

Questions Cloud

Calculate the nwc to total assets ratio for each year : Calculate the debt–equity ratio and equity multiplier for each year. Calculate the NWC to total assets ratio for each year.
What additional points were offered that did not consider : What additional points were offered that you did not consider? How did you integrate the new information? Provide a rationale for the changes that you did.
Choose for a website back : With so many languages from which to choose for a website's back end (among them C#, Java, JavaScript, PHP, Python, Ruby, et al.)
What is the total value after the announcement : What is the total value of the company before the announcement? What is the total value after the announcement?
Weekly average tax withholding for a customer : I need to make a program that calculates the weekly average tax withholding for a customer, given the following weekly income guidelines:
Conduct research on family and domestic violence : What kind of citizenry do you think is the site seeking to promote and support? What resources are being mobilized and what are citizen groups.
How do you integrate python and mysql : How do you integrate Python and MySQL? Can you also explain how you iterate through a JSON field in a Python?
Task with a basic access list : For telnet to the router in particular, how could you perform this task with a basic access list?
Provide a brief summary of the current event : A current event refers to something that is happening in the world at present and they are usually described on the news and in mass media.

Reviews

Write a Review

Business Management Questions & Answers

  Caselet on michael porter’s value chain management

The assignment in management is a two part assignment dealing 1.Theory of function of management. 2. Operations and Controlling.

  Mountain man brewing company

Mountain Man Brewing, a family owned business where Chris Prangel, the son of the president joins. Due to increase in the preference for light beer drinkers, Chris Prangel wants to introduce light beer version in Mountain Man. An analysis into the la..

  Mountain man brewing company

Mountain Man Brewing, a family owned business where Chris Prangel, the son of the president joins. An analysis into the launch of Mountain Man Light over the present Mountain Man Lager.

  Analysis of the case using the doing ethics technique

Analysis of the case using the Doing Ethics Technique (DET). Analysis of the ethical issue(s) from the perspective of an ICT professional, using the ACS Code of  Conduct and properly relating clauses from the ACS Code of Conduct to the ethical issue.

  Affiliations and partnerships

Affiliations and partnerships are frequently used to reach a larger local audience? Which options stand to avail for the Hotel manager and what problems do these pose.

  Innovation-friendly regulations

What influence (if any) can organizations exercise to encourage ‘innovation-friendly' regulations?

  Effect of regional and corporate cultural issues

Present your findings as a group powerpoint with an audio file. In addition individually write up your own conclusions as to the effects of regional cultural issues on the corporate organisational culture of this multinational company as it conducts ..

  Structure of business plan

This assignment shows a structure of business plan. The task is to write a business plane about a Diet Shop.

  Identify the purposes of different types of organisations

Identify the purposes of different types of organisations.

  Entrepreneur case study for analysis

Entrepreneur Case Study for Analysis. Analyze Robin Wolaner's suitability to be an entrepreneur

  Forecasting and business analysis

This problem requires you to apply your cross-sectional analysis skills to a real cross-sectional data set with the goal of answering a specific research question.

  Educational instructional leadership

Prepare a major handout on the key principles of instructional leadership

Free Assignment Quote

Assured A++ Grade

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!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd