I need the Pseudo Code for this please Using the MultipleAl
I need the Pseudo Code for this please !!
Using the Multiple-Alternative IFTHENELSE Control structure write the pseudocode to solve the following problem to prepare a contract labor report for heavy equipment operators: The input will contain the employee name, job performed, hours worked per day, and a code. Journeyman employees have a code of J, apprentices a code of A, and casual labor a code of C. The output consists of the employee name, job performed, hours worked, and pay. Journeyman employees receive $20.00 per hour. Apprentices receive $15.00 per hour. Casual Labor receives $10.00 per hour.
Solution
Pseudo-Code that reads name, job , hours and code and
and calcultes the pay for given hours
START
SET pay to zero
SET JOURNEYMAN_PAY_RATE to 20
SET APPRENTICES_PAY_RATE to 15
SET CASUAL_PAY_RATE to 10
READ name
READ job
READ hours
READ code
IF code is \'J\' THEN
COMPUTE pay AS hours times JOURNEYMAN_PAY_RATE
IF code is \'A\' THEN
COMPUTE pay AS hours times APPRENTICES_PAY_RATE
IF code is \'C\' THEN
COMPUTE pay AS hours times CASUAL_PAY_RATE
END
PRINT name
PRINT job
PRINT code
PRINT pay
END
