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

Description of the procurement contract life cycle

Draft a memo to a chief executive officer explaining the procurement contract process. Include the following elements: Provide a general description of the procurement contrac

Finding a negative cycle in the graph of o

1. Finding a negative cycle in the graph of O (NM) [TeX] 2. Finding Euler Euler path or cycle of O (M) 3. Checking on the a cyclic graph and finding the cycle of O (M) All of

Write a term paper on virtual team management

Write a term paper on Virtual Team Management & Success that covers all the sections covered in the class. It is highly encouraged to start working on your paper from week

Annual report from a chemical company

Obtain an annual report from a chemical company (e.g. DuPont, Eastman Kodak, Dow Chemical, Monsanto, Pfizer, etc.), or visit a company's public website where they discuss s

Calculates the factorial of its integer argument

(On many systems, you must use a value of 16 or lower to achieve correct results; the factorial of higher numbers is larger than the value that can be stored in an integer.)

Significant factors contributing to mmcc-s success

Write down most significant factors contributing to MMCC's success with its new, secure, self-managed network? Describe the reasons for your choices.

Calculate portfolio new beta

The portfolio's beta is 1.20. Suppose you sell one of the stocks with a beta of .8 for $5,000 and use the proceeds to buy another stock whose beta is 1.6. Calculate your po

Find the charge through the wire with respect to time

(A)* Direct current in steady state does not vary with time. If a DC currentof 5 A flows through a wire, find the charge through the wire with respect to time. The charge at


Write a Review

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