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

  Difference in computer program and programming a computer

Explain the difference between using a computer program and programming a computer. How do you discover syntax errors. How do you discover logic errors. What is the difference between object and object reference

  The organization code of ethics

The organization  code of ethics?

  Describe the evolution of hypertext

Describe the evolution of hypertext, from its original conception to its realization as a widely used technology.

  Contrast, and summarize the most common procurement documen

Define, compare, contrast, and summarize the most common procurement documents used in industry.

  Find out product stream temperature and volume

Find out the product stream temperature and volume required to carry out reaction in a CSTR at 50 % conversion in adiabatic mode of operation.

  The internet uses a network technology

The internet uses a network technology called TCP/IP. The name comes from the protocol stack that includes TCP protocol in the transport layer and IP protocol in the network layer. Sometimes UDP protocol is used in the Transport layer ..

  Program that generates a 6-by-6 two-dimensional matrix

Write a program that generates a 6-by-6 two-dimensional matrix filled with 0s and 1s, displays the matrix, and checks if every row and every column have an even number of 1s.

  Making the world a different place

Paper Review of "Making the World (of Communications) a Different Place" - David D. Clark, Craig Partridge, Robert T. Braden, Bruce Davie, Sally Floyd, Van Jacobson, Dina Katabi, Greg Minshall, K.K. Ramakrishnan, Timothy Roscoe, Ion Stoica, JohnWr..

  Benefits and challenges of enterprise application

Based on what you've learned about the benefits and challenges of enterprise application integration and how EAI can contribute to the business value, write a 2-3 page memo to your IT manager in which you advocate for or against the integration of..

  Illustrate the structure of the program?

The scoring instrument has a section on style. These are the four criteria for style: o Do identifiers logically describe use? o Is indentation used correctly to illustrate the structure of the program? o Is there a consistent naming convention? o Do..

  Comparison of the different kinds of mobile

Remember to state the business problem, articulate the current setup, explain how mobile and wearable devices are different, and how they benefit the business.

  Defeating physical security controls to bypass access

You might be wondering if physical security is really important in this digital age. After all, you have been studying how to protect IT assets via a keyboard, not by wearing a security officer's uniform and guarding the server room's door. Should..

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