In: Computer Science
Function Main
Declare Integer EmpNum, HoursWorked, option
Declare Real HourlyPay, StateTax, FederalTax, NetPay,
GrossPay
Declare String LastName
Loop
Output "Enter Employee Number ...LastName ...Hours
worked...Hourlypay....State tax ..Federal tax"
Input EmpNumber, LastName, HoursWorked, HourlyPay, Statetax,
federaltax
If Hoursworked>40
Assign HourlyPay = 2*HourlyPay
End
Assign grosspay = HoursWorked*HourlyPay
Assign NetPay =
GrossPay-(GrossPay*(federaltax/100))-(GrossPay*(statetax/100))
Output "Grosspay " GrossPay "NetPay" NetPay
Output "Do you want to read next employee details yes or no"
Input option
Do option ="yes"
End