Question: Write pseudocode to calculate the weekly pay for employees. The user will prompted to enter the number of hours worked and their job code. Hours
Write pseudocode to calculate the weekly pay for employees. The user will prompted to enter the number of hours worked and their job code. Hours in excess of 40 are paid at 1.5 times the hourly pay. Job code hourly rates are: P - $10, Q - $12.50, R - $15.00, and S - $20.00. Use both a case and a selection structure.
Use the following structure
// main module
Module main()
// Local variables
Declare Integer number
// Get number
Call getNumber(number)
// display Roman numeral
Select number
Case 1:
Display I
Case 2:
Display II
Case 3:
Display III
Case 4:
Display IV
Case 5:
Display V
Case 6:
Display VI
Case 7:
Display VII
Case 8:
Display VIII
Case 9:
Display IX
Case 10:
Display X
Default:
Display Error: Invalid Number
End Select
End Module
// The getNumber module gets wall space and stores it
// in the number reference variable.
Module getNumber (Integer Ref number)
Display Enter an integer from 1 to 10:
Input number
End Module
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
