Write a program to calculate a person''s net pay

Assignment Help C/C++ Programming
Reference no: EM13165429

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

Questions Cloud

Include a main function that will solicit : Include a main function that will solicit a DNA sequence string from the user, call the genes function to obtain all the genes in the sequence and print each one on the console display
Create entries for monthly expenses : We are not creating entries for monthly expenses such as rent and preparing the financial statements and documents floating around that may or may not be needed for efficient and effective processing of the business information and paper that is no..
Write a c++ program that would take two 3x3 matrix : Write a C++ program that would take two 3x3 matrix and outputs the results of adding, subtracting and multiplying two matrices. Create at least three functions: one that performs addition,
Throws an exception from a deeply nested : Write a program that throws an exception from a deeply nested function and still has the catch handler following the try block enclosing the initial call in main catch the exception
Write a program to calculate a person''s net pay : 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.
Both the userid and the person''s full name : a report and not just a listing:The report might be created with awk but it should have a heading. it should list both the userid and the person's full name (a person's fullname can be found in /etc/passwd file)
Find the sixth maclaurin polynomial for sin x : Find the sixth Maclaurin polynomial for sin x and use Chebyshev economization to obtain a lesser-degree polynomial approximation.
What is the mass fraction of the metal in the metal sulfide : A metal sulfide is 71.6% metal by mass. What is the mass fraction of the metal in the metal sulfide?
A subroutine in marie assembly that multiplies two value : 1)Write a subroutine in MARIE assembly that multiplies two values where the arguments for this subroutine are two pointers(each pointing to a value). The routine, multiply(a,b), performs *a x *b where a's value is the address storing the value being ..

Reviews

Write a Review

C/C++ Programming Questions & Answers

  Prepare a linear support vector machine svm

Write a computer program to prepare a Linear Support Vector Machine SVM

  Algorithm to determine which items to take to max weight

Write an algorithm to determine which items to take to maximize the weight of his loot bag. He cannot take a fraction of an item and each item must be taken, or left behind. Loot bag size is Z and and the input is an array of item wieghts as integers..

  File system with login authentication

Implement a simple file system with login authentication and access control - Construct a hash/salt/shadow based user/password creation system.

  Program that displays the ball at a random

Write a C++ program that displays the ball at a random location and then makes the ball move down to the bottom of the screen. When the ball reaches the bottom of the screen, it should start these actions over again, appear-ing at another random l..

  Code to implement a staque

Write a C++ code to implement a Staque. Since the data structure is all about inserting and deleting numbers, it would be a good option to use a linked list to implement Staque.

  Program to compute the total volume

Write a program to compute the total volume for a number of cylinders. A cylinder may have different values for height and radius.

  Write a program that will read in 2 numbers per line

1.Write a program that will read in 2 numbers per line, and print the sum. You program should work for any number of lines of data.

  Write down a program which will calculate and displays min

write down a program which will calculate and displays the min temperature and the maximum temperature for seven days of a week.

  Implementation of data member counter of type int

Write the implementation (.cpp file) of Counter class. Here is the full specification of the class: A data member counter of type int.

  Build a table of reynolds numbers at flow velocities

Write a program code to compute and build a table of Reynolds numbers at flow velocities varying from 100 to 1000 ft/sec (at increments of 100)

  Write program which inputs number of winning coupons

Write a program which inputs number of coupons you win and outputs how many candy bars and gumballs you can get if you spend all off your coupons on candy bars first and remaining coupons on gumballs in c++.

  Definitions of the class circularlinkedlist

Write the definitions of the class circularLinkedList and its member functions. (You may assume that the elements of the circular linked list are in ascending order.)

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