Need the pseudocode for the following The owners of the Sup

Need the pseudocode for the following :

The owners of the Super Supermarket would like to have a program that computes the monthly gross pay of their employees as well as the employee’s net pay. The input for this program is an employee ID number, hourly rate of pay, and number of regular and overtime hours worked. Gross pay is the sum of the wages earned from regular hours and overtime hours; overtime is paid at 1.5 times the regular rate. Net pay is gross pay minus deductions. Assume that deductions are taken for tax withholding (30 percent of gross pay) and parking ($10 per month). You will need the following variables:

EmployeeID (a String)            HourlyRate (a Float)   RegHours (a Float)

GrossPay (a Float)      Tax (a Float)   Parking (a Float)

OvertimeHours (a Float)         NetPay (a Float)

You will need the following formulas:

GrossPay = RegularHours * HourlyRate + OvertimeHours

*(HourlyRate * 1.5)

NetPay = GrossPay - (GrossPay * Tax) – Parking

Solution

void calculateWages()
{
string eid;
float hRate, regHrs,grsPay,tax, parking=10, ovrtymHrs, netPay;
Print \"Enter the Employee id\"
cin>>eid;
Print \"Enter the hourly rate for an employee\";
cin>>hRate;
Print \"Enter the regular hours for an employee\";
cin>>regHrs;
Print \"Enter the overtime hours for the employee\";
cin>>ovrtymHrs;
grsPay=regHrs * hRate + ovrtymHrs *(hRate *1.5);
tax=0.3 * grsPay;
netPay= grsPay - tax- parking;



}

Need the pseudocode for the following : The owners of the Super Supermarket would like to have a program that computes the monthly gross pay of their employees

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site