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

  Identifies the cost of computer

identifies the cost of computer components to configure a computer system (including all peripheral devices where needed) for use in one of the following four situations:

  Input devices

Compare how the gestures data is generated and represented for interpretation in each of the following input devices. In your comparison, consider the data formats (radio waves, electrical signal, sound, etc.), device drivers, operating systems suppo..

  Cores on computer systems

Assignment : Cores on Computer Systems:  Differentiate between multiprocessor systems and many-core systems in terms of power efficiency, cost benefit analysis, instructions processing efficiency, and packaging form factors.

  Prepare an annual budget in an excel spreadsheet

Prepare working solutions in Excel that will manage the annual budget

  Write a research paper in relation to a software design

Research paper in relation to a Software Design related topic

  Describe the forest, domain, ou, and trust configuration

Describe the forest, domain, OU, and trust configuration for Bluesky. Include a chart or diagram of the current configuration. Currently Bluesky has a single domain and default OU structure.

  Construct a truth table for the boolean expression

Construct a truth table for the Boolean expressions ABC + A'B'C' ABC + AB'C' + A'B'C' A(BC' + B'C)

  Evaluate the cost of materials

Evaluate the cost of materials

  The marie simulator

Depending on how comfortable you are with using the MARIE simulator after reading

  What is the main advantage of using master pages

What is the main advantage of using master pages. Explain the purpose and advantage of using styles.

  Describe the three fundamental models of distributed systems

Explain the two approaches to packet delivery by the network layer in Distributed Systems. Describe the three fundamental models of Distributed Systems

  Distinguish between caching and buffering

Distinguish between caching and buffering The failure model defines the ways in which failure may occur in order to provide an understanding of the effects of failure. Give one type of failure with a brief description of the failure

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