Compute the net pay for employees - c program, C/C++ Programming

Write a C# program to compute the Net Pay for employees. The program is to have a Main method and two user-defined methods. The Main method is to input the employee's name (string), hours worked (int), rate of pay (double), and percentage of tax (double).  The Main method is then to call the ComputeGrossPay method and pass to it the hours worked and rate of pay. ComputeGrossPay will return the gross pay as a double. The gross pay and percentage of tax are then passed to ComputeNetPay which computes the net pay as follows: net pay = gross pay - (gross pay * percentage of tax). ComputeNetPay is to be a void method with the resulting value being returned as a call by reference parameter. The Main method then prints out the employee's name, the gross pay, and the net pay. The methods headers should look like:

public static double ComputeGrossPay (int hours, double payRate)

public static void ComputeNetPay (double grossPay, double perTax, ref double netPay)

Posted Date: 2/26/2013 2:26:45 AM | Location : United States







Related Discussions:- Compute the net pay for employees - c program, Assignment Help, Ask Question on Compute the net pay for employees - c program, Get Answer, Expert's Help, Compute the net pay for employees - c program Discussions

Write discussion on Compute the net pay for employees - c program
Your posts are moderated
Related Questions
Explain about the Variables in c language? The Variable is an identifier that is used to represent some specified kind of information within a designated portion of the program

Write a program that writes your name on the monitor ten times. Write this program three times, once with each looping method.

decodes the sending smuggler string from the number format into plain text

wap to read an employee salary and calculate DA,HRA,pf,GROSS,NET conditions:- BASIC DA HRA PF >10000 7% 9% 10% & >20000 9% 11% 15% &

Project Description: I have a barber salon I am seeking someone to build me software for my PARTNER PT6910 touch screen till system. This software must add multiple staff login

Normal 0 false false false EN-US X-NONE X-NONE MicrosoftInternetExplorer4


Explain Register Variable Computers have internal registers, which are used to keep data temporarily, before any operation can be performed. Intermediate results of the calcula

demonstrates shearing about origin

Write a program in C to implement a FTP client that can interoperate with a default FTP server . The client should implement basic FTP commands GET PUT LIST DELE . GET -> to