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
Develop a program to meet the following requirements: 1. Must use at least one function in addition to main (you can use more) 2. Must use selection 3. Must use deference/indire

write a C program for padovan string for a natural number

how to create database of faculty database......... send me with program

Can any constructor throw an exception? How to handle error while the constructor fails?


answer for tcs is working question

I need vsti program Project Description: Knowledge of vsti programs, and music is a plus, ex: nexus I will input the sounds I just need the interface built Skills required

(a) Pairs may be represented using a lambda. Using only lambdas, create a procedure (triple x y z) that constructs a triplet. You may NOT use car, cons or cdr in the triplet proced

please may i have a brief theory about a c++ program to find net salary of employees

Write a C program to input three real numbers and  print them out as follows : The first variable is ....... and the second one is ...... The last variable is .......... T