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

  Design program that determines males live in zip code area

Design a program that determines how many males and females live in each of the Zip Code areas in the Student Enrollment Records Set.

  You have been hired by a school district

You have been hired by a school district to write a program that will grade multiple choice exams and providea report listing the grade (numeric and letter) for each student, the problems missed for each student.

  Write a program that reads in investment amount

Write a program that reads in investment amount, annual interest rate, and number of years, and displays the future investment value

  Design application to allow user to input a price

Design an application that allows a user to input a price until an appropriate sentinel value is entered.Output is the price of each item on each day,one through seven.

  Write a set-list of enumerated constants for week

Write a set/list of enumerated constants called week which contains days of the week. Have variable called today that is of type week. Allot value to today.

  Create a tic-tac-toe program

Without using the Graphics API In Raptor Programming software could you please create a tic-tac-toe program that allows two to three players using a two dimensional string array with three rows and three columns as the board

  Design implement application displays button-label on screen

Design an implement an application that displays a button and a label on a screen. Every time the button is pushed, the label will display a random number.

  How many scores they will enter

Because all users may not have 10 scores and we want to keep the scores they entered for use at a later date, the above program will have to be modified to add a menu that lets the user decide how many scores they will enter

  Explain relationship between xbrl and semantic web

How do HTML 5, RDF (Resource Description Framework), and OWL (Web Ontology Language) relate to the semantic web? Explain the relationship between XBRL and the semantic web.

  Write the function definition as a recursive search

Write the function definition as a recursive search, assuming an array-based implementation.

  Write method to display the number by adding hundred

displayItTimesTwo(), and displayItPlusOneHundred(). Write each method to perform the task its name implies. Save the application as TestMethods.java.

  Computes the wind-chill factor for a given temperature

The user should be able to enter a temperature and wind speed via text boxes, then click a button to view the corresponding wind-chill factor in a separate text box. As part of your page, you should define a function named Wi ndChi 11 that accepts..

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