Write a program to calculate a persons net pay

Assignment Help Programming Languages
Reference no: EM131184602

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: EM131184602

Questions Cloud

Report the dividend payments over the last three years : Report the dividend payments over the last three years. -Calculate the dividend payout and dividend yield. - Identify a dividend payout policy that the company follows.
Calculate the direction of motion of the particle : Calculate the direction of motion of the particle.
What is the geometric average rate of return earned : What is the arithmetic average rate of return earned by investing in Caswell's stock over this period? What is the geometric average rate of return earned by investing in Caswell's stock over this period?
Explain if any plan can assure no data loss to the public : Evaluate the role of the Informatics leader in overseeing clinical documentation and information systems during a disaster. Explain which is more important: risk assessment, risk management, or a business continuity plan to ensure data security an..
Write a program to calculate a persons net pay : 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.
Explain the role neuroplasticity would have in your recovery : Suppose you were to suffer an accident to the frontal lobe of your brain. Describe what effects you might notice as a result of this accident. Explain the role neuroplasticity would have in your recovery
Find the scaling factor of the original velocity vector : Find the scaling factor of the original velocity vector required to get the satellite to its new speed.
What does the statement of cash flows report : What does the statement of cash flows report? How does the statement of cash flows help users of financial statements? If you were the vice president of accounting for a company, would you use the direct method or the indirect method? Why?
Describe the major theoretical position of elise boulding : Define and describe the major theoretical position of Elise Boulding and Margaret Mead. Explain how their theoretical position altered or changed the way social scientists view culture

Reviews

Write a Review

Programming Languages Questions & Answers

  Write a haskell program to calculates a balanced partition

Write a program in Haskell which calculates a balanced partition of N items where each item has a value between 0 and K such that the difference b/w the sum of the values of first partition,

  Create an application to run in the amazon ec2 service

In this project you will create an application to run in the Amazon EC2 service and you will also create a client that can run on local machine and access your application.

  Explain the process to develop a web page locally

Explain the process to develop a Web page locally

  Write functions

These 14 questions covers java class, Array, link list , generic class.

  Programming assignment

If the user wants to read the input from a file, then the output will also go into a different file . If the user wants to read the input interactively, then the output will go to the screen .

  Write a prolog program using swi proglog

Write a Prolog program using swi proglog

  Create a custom application using eclipse

Create a custom Application Using Eclipse Android Development

  Create a application using the mvc architecture

create a application using the MVC architecture. No scripting elements are allowed in JSP pages.

  Develops bespoke solutions for the rubber industry

Develops bespoke solutions for the rubber industry

  Design a program that models the worms behavior

Design a program that models the worm's behavior.

  Writing a class

Build a class for a type called Fraction

  Design a program that assigns seats on an airplane

Write a program that allows an instructor to keep a grade book and also design and implement a program that assigns seats on an airplane.

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