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

  What is the difference between the two statements

What is the difference between the following two statements?

  Program to compute percentage and final grade for students

Write a program which will permit teacher to compute percentage and final grade for students in a class.

  Give hypertext link of the internet location of program

Describe in one or two paragraphs what you observe. Give hypertext link of the internet location of the program (or applet) you found.

  Design and implement class instance data for title of book

Design and implement a class called Book that contains instance data for the title, author, publisher, and copyright date. Define the Book constructor to accept and initialize this data.

  A device that when moved along a flat

A device that when moved along a flat surface can move the on-screen cursor

  The code to implement a state diagram to recognize

The code to implement a state diagram to recognize one form of the comments of the C-based programming languages, those begin with /* and end with */.

  Create a program that keeps track

Create a program that keeps track of the following information input by the user: First Name, Last Name, Phone Number, and Age. Now - let's store this in a multidimensional array that will hold 10 of these contacts. So our multidimensional arra..

  Create a shell script that will list files in a directory

This option instructs the program to display a long listing. The output shall display the following column headers

  Write application to compute and show parking charges

Write down the application which computes and shows parking charges for each customer who parked in garage yesterday. You must enter hours parked for each customer.

  Design class named loan that holds account number

Design a class named Loan that holds account number, name of account holder, amount borrowed, term, and interest rate. Include methods to set values for each data field.

  Also assume the air behaves as an ideal gas with constant

consider the evaporator section of a window air conditioner note the evaporator may be considered as a shell and tube

  Formulate a nonlinear-programming model that will have

Formulate a nonlinear-programming model that will have an expected number T of enrolling needy admit tees, and minimize the scholarship budget.

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