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

#include #include using namespace std; class Book { private: string title; int iD; int year_pub; string author; public: string getTitle(); int getId(); int getYear_Pub(); st

Byteland county is very famous for luminous jewels. Luminous jewels are used in making beautiful necklaces. A necklace consists of various luminous jewels of particular colour. Nec

Program to calculate tax: float tax (float) ; int main() {                 float purchase, tax_amt, total;                 cout                 cin >> purchase

Destructor: The purpose of destructor is to free the memory when the compiler memory is reduced or not enough to execute certain program. Sometimes there may several objects op

Question : (a) Define a Pointer. Provide an example of an integer pointer variable. (b) Give advantages of using pointers over arrays. (c) Declare an integer pointer

Pure Virtual Functions An abstract class is one, which is used just for deriving some other classes. No object of this class is declared and used in the program. Likewise, ther

Should I call a destructor explicitly on a local variable?

Should I explicitly call a destructor on a local variable? Explain it.

It is standard on functions to provide some indication that the function has succeeded in its operation. Consider the Scanf function:     scanf("%d",&number1);   If the functio