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
I want a PROGRAM - Facebook auto like system to increase fans to different fanpage It has in a program that take Facebook mails and passwords from a excel file (.xlsx) for examp

A palindrome is a string that reads the same from both the ends. Given a string S convert it to a palindrome by doing character replacement. Your task is to convert S to palindrome

I want VLC Pitch Changing Addon Project Description: Required: Plugin to modify the pitch of running tracks in VLC without changing the speed. Skills required are C Progra

Study the given hierarchical class diagram and additional information, and answer the questions that follow: Sale Company: string unitPrice: double

Project Overview A certain financial institution (bank) wishes to promote its new business products/services by conducting road shows in rural areas. Their aim is to encourage peop

C program to demonstrate Pointer to string: void main() {                 int a;                 char str[]="hello how are you?",*ptr_str;                 ptr_str=&

simple coding for pebble merchant..

Define the Category of Function? A function, depending on whether arguments or parameters are present or not and whether a value returned or not, may belong to one of the foll

how to make the coding

write a program to find the area under the curve y=f(x) between x=a & x=b