Calculate a person''s net pay after subtracting income

Assignment Help Basic Computer Science
Reference no: EM131191238

Write a program to calculate a person's net pay after subtracting federal income tax. The program should ask the user to enter the person's name, social security number, gross pay, and the number of dependents. The program should first de- termine the tax rate according to the following schedule.

Weekly Income Tax Rate
0.00-300.00 0.085
300.01-500.00 0.120
500.01-1000.00 0.185
1000.01 and over 0.220

Use a function Tax_Rate() to determine the schedule. Pass the gross pay to Tax_Rate() and have the function return the rate. Next, use the function Calc_Fed_Tax() to calculate the federal tax. The first ar- gument should be the address of the gross income. The second argument should be the address of the tax rate (as returned by Tax_Rate()). The third argument should be the address of the number of dependents. The amount of the federal tax should be returned in the target of the fourth argument. Finally, the program should calculate the net pay by subtracting the federal tax from the gross income. The program should display the person's name, social se- curity number, gross pay, number of dependents, federal tax, and net pay.

Reference no: EM131191238

Questions Cloud

How long will jill need to run the hose : How long will Jill need to run the hose? Express your answer in hours and minutes. Be sure to answer all parts of the question above.
What wrong with using the class limits : A data set has values ranging from a low of 10 to a high of 50. What's wrong with using the class limits 10-20, 20-30, 30-40, 40-50 for a frequency table?
What is the impact of provision made on the eps of company : What is the impact of provision made in 2000-01 on the EPS of the company? - Do you feel it is the real EPS of the company for this year?
Originating in late seventeenth-century : Consider the game of roulette, a well-known casino game. Originating in late seventeenth-century France, this game is typically played on a wheel with 38 slots numbered 00, 0, and 1 through 36, although not in sequence.
Calculate a person''s net pay after subtracting income : Write a program to calculate a person's net pay after subtracting federal income tax. The program should ask the user to enter the person's name, social security number, gross pay, and the number of dependents. The program should first de- termine..
Provide your position on whether residential sprinklers : Residential sprinklers have been debated between the fire officials and builders for a very long time. There are many documented studies that indicate residential sprinklers, along with smoke detection systems, should be the first line of defense ..
Create a purchasing and supply chain plan for chilly willy : Use the business scenario provided to create a purchasing and supply chain plan for Chilly Willy - OEM manufacturer of refrigerated cases for grocery stores that sell their products in all 50 states. They have sales of $20 million a year and predic..
Calculate the consumption ratios for the four drivers : Calculate the consumption ratios for the four drivers.- Is there evidence of product diversity? Explain.- Calculate the activity rates that would be used to assign costs to each product.
How should a gain from the sale of treasury stock be reflect : How should a "gain" from the sale of treasury stock be reflected when using the cost method of recording treasury stock transactions? Stockholders' equity is generally classified into two major categories.

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