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

  Program that reads in the average monthly

Write a program that reads in the average monthly rainfall for a city for each month of the year and then reads in the actual monthly rainfall for each of the previous 12 months. The program then prints out a nicely formatted table showing the rainfa..

  Using array subscript notation

Using array subscript notation, base/offset notation with the array name as the pointer, array notation with  vPtr , and pointer/offset notation with  vPtr , add 3 to the value in the 3 rd element and display that number. (Do not modify the value in ..

  Give a recursive definition of s.

Let S be the set of positive integers that can be written as a sum of one or more 4's and/or 7's. For example, 7 ? S and 18 ? S (because 18 = 4 + 7 + 7)

  Program to print out invalid number to character

The integer must contain 3 distinct non-zero number, or the program will print out invalid number.it should print out invalid query.

  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.

  Displays columns titled "name", "quantity", "price", value

Write a program that displays columns titled "Name", "Quantity", "Price", and "Value". The fourth column contains the result of multiplying each item's quantity by its price. In addition, the program should calculate and display the total value of th..

  Wrtie a function called gen_rand_double_array

Wrtie a function called gen_rand_double_array that generates 900 samples of size 22500 random numbers from U(10, 12). For each of these 900 samples, write a main funciton that calculates the mean and finds the simulated probability that the mean is b..

  Object-oriented systems is the concept of object

At the heart of all object-oriented systems is the concept of an object. Simply stated, an object is a set of related characteristics and their associated actions.

  Writing a program that creates a linked list

Writing a program that creates a linked list from 100 randomly generated numbers and sorts the using a heap. One heap in ascending order and one heap in descending order. Then displays the original linked list and both sorted lists.

  Write program using c language to find page fault

Write program using c language to find page fault for individual processes, group of processes and system as whole using following system call int sys_pgfltstats(pid_t pid,int flag,pf_info_struct *info).

  Write program which reads n numbers from keyboard

Write down C++ program which reads N numbers (positive, negative, integer and double numbers) from keyboard, computes and shows the following information. Largest number of all numbers entered from keyboard.

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