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
Study the given class specification and answer the questions that follow: class Person { private:   string name;   int yrBorn;   int yrDied;   public:   Per

Write a program that computes the cost of a long distance call. The cost of the call is determined according to the following rate schedules. a. A call made between 8:00 AM and

if one won't explicitly call the destructor of a local; then how does he handle the above situation?

Write a program to find the area under the curve y = f(x) between x = a and x = b, integrate y = f(x) between the limits of a and b. The area under a curve between two points can b

requiredrequiredrequiredrequiredrequiredrequiredrequiredrequired

write a c++ program for minimum shelf downloads

Pointers to Objects Passing and returning of objects is, though, not very efficient since it includes passing and returning a copy of the data members. This problem can be elim

draw the flow chart to print the fibonacci series upto n th terms

Explain about the Constants in c language? The Constants in C refer to fixed values that don't change during the execution of a program. C has four fundamental types of constan