Calculate the taxable income-subtract the sum

Assignment Help Basic Computer Science
Reference no: EM131289215

Write a program that can be used to calculate the federal tax. The tax is calculated as follows: For single people, the standard exemption is $4,000; for married people, the standard exemption is $7,000. A person can also put up to 6% of his or her gross income in a pension plan.

The tax rates are as follows: If the taxable income is:

  • Between $0 and $15,000, the tax rate is 15%.
  • Between $15,001 and $40,000, the tax is $2,250 plus 25% of the taxable income over $15,000.
  • Over $40,000, the tax is $8,460 plus 35% of the taxable income over $40,000.

Prompt the user to enter the following information:

  • Marital status
  • If the marital status is ‘‘married,'' ask for the number of children under the age of 14
  • Gross salary (If the marital status is ‘‘married'' and both spouses have income, enter the combined salary.)
  • Percentage of gross income contributed to a pension fund

Your program must consist of at least the following functions:

a. Function getData: This function asks the user to enter the relevant data.

b. Function taxAmount: This function computes and returns the tax owed. To calculate the taxable income, subtract the sum of the standard exemption, the amount contributed to a pension plan, and the personal exemption, which is $1,500 per person. (Note that if a married couple has two children under the age of 14, then the personal exemption is $1,500 * 4 = $6,000.)

Reference no: EM131289215

Questions Cloud

Provide an overall background of the topic : Provide an overall background of the topic. Include any comparison or contrast of additional System Analysis and Design concepts or technologies that we have discussed in the course or that you have read about.
Determine strategies that can be used to develop effective : Determine strategies that can be used to develop effective groups and teams.Describe methods that can be used to facilitate phases of team development.
Should the company be liquidated or reorganized : What are the advantages and disadvantages of a voluntary workout to resolve financial distress? What are the advantages and disadvantages of declaring bankruptcy to resolve financial distress?
Difference between economic failure and financial distress : What is the difference between economic failure and financial distress? Which situation is likely to lead to liquidation, and which is likely to result in reorganization?
Calculate the taxable income-subtract the sum : Function taxAmount: This function computes and returns the tax owed. To calculate the taxable income, subtract the sum of the standard exemption, the amount contributed to a pension plan, and the personal exemption, which is $1,500 per person. (No..
What is the purpose of a prepackaged bankruptcy : What is the purpose of a prepackaged bankruptcy? Would a prepackaged bankruptcy be more likely to be used for a liquidation or a reorganization?
Explain the planning consideration for staffing organization : Develop a model for staffing an organization that supports the firm's Human Resources Management strategy and sustains productive operations.
Global variables and special values : Your program should not use any global variables and special values such as coffee cup sizes and cost of a coffee cup must be declared as named constants.
How to manage change and reorganisation lawfully : Understand the purpose of employment regulation and the way it is enforced in practice. how to manage recruitment and selection activities lawfully.

Reviews

Write a Review

Basic Computer Science Questions & Answers

  What is the black stack

Read this article http://www.e-flux.com/journal/the-black-stack Write 500 words minimum for each prompt below. Keep your copy Ratios below 30%.  What is the "Black Stack"? Discuss

  Define these three categories

Define these three categories, and use a two-dimensional figure to illustrate how the splitting is performed.

  What is the intent of regulatory compliance

What is the intent of regulatory compliance, and what is the role of IT in maintaining corporate compliance?

  Joco imports products from overseas vendors and sells

JoCo imports products from overseas vendors and sells

  Random numbers

Create a program that will generate a list of 200 random numbers (ranging from 1- 1000) and determine the medium, mode, and average of the list of numbers. Have the program display the original list and then display the list in ascending and desce..

  Independent student reading and research

NOTE: This is part three of a three-part assignment. In this final version it is expected that adjustments will be made based on the feedback provided in Weeks 2 and 3. Be sure that the entire paper is cohesive and flows from section to section ac..

  Design a moore machine that performs a parity check

Design (draw the diagram) a Moore machine that performs a parity check on the input string (string of 0 and 1): that is, the output string ends in 1 if the total number of 1-bits in the input string is odd and 0 if the total number of 1-bits in th..

  Write an openmp program for computing the product

Download sample matrices from the Matrix Market (http://math.nist.gov/MatrixMarket/) and test the performance of your implementation as a function of matrix size and number of threads.

  Create a cloud proposal

You are about to create a Cloud Proposal for week 7 assignment. What organization are you planning on using? Which model would (SaaS, PaaS or IaaS) would work the best and why?

  How the game is played from start to finish

Conduct outside research on the game Yahtzee. You really want to better understand how the game is played and scored. Then, create a 1-2 page paper that explains the following in essay form:

  Explain ratios can you calculate based on the data provided

Which meaningful ratios can you calculate based on the data provided. Is there sufficient data to determine which is the better performing graphic. If yes, which is the best performing graphic.

  What http header is needed in each case

Is it possible to dynamically generate JavaScript or CSS files for webpages? If so, how would you code a myjs.php or a mycss.php file? What HTTP header is needed in each case?

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