write a pseudocode for a program that asks for the Employee ID, the hours worked and the pay rate, then returns the employee's gross pay for the week?

Begin_Payroll

PRINT (“Enter employee ID”
READ employee num
END
PRINT (“Enter employee last name”)
READ employee last name
END
PRINT (“rate of pay per hour”)
READ rate of pay per hour
END
PRINT (“Enter hours worked”)
READ hours worked
END
Gross pay = Hours worked * rate of pay per hour
if hours <= 0
print "error - no hours entered"
else if hours <= 40
pay = rate * hours
else
pay = rate*40 + rate*1.5*(hours-40)
endif

Can we see what you've done?

Don't no

The following pseudocode is supposed to print the area of a rectangle. What is the problem ?

area = width x length ;

display "what is the width "

input width

display "What is length"

input length

display area

Certainly! Here's a pseudocode for a program that calculates the gross pay of an employee based on their ID, hours worked, and pay rate:

1. Start
2. Declare variables:
- employeeID (integer)
- hoursWorked (float)
- payRate (float)
- grossPay (float)
3. Display "Enter Employee ID:"
4. Read and store employeeID
5. Display "Enter Hours Worked:"
6. Read and store hoursWorked
7. Display "Enter Pay Rate:"
8. Read and store payRate
9. Calculate grossPay as hoursWorked multiplied by payRate
10. Display "Employee ID:", employeeID
11. Display "Gross Pay:", grossPay
12. End

By following this pseudocode, you can create a program in any programming language that takes input for employee ID, hours worked, and pay rate and calculates the gross pay accordingly.