Professional Documents
Culture Documents
Laboratory 5
Laboratory 5
Laboratory 5
Chapter 6: Functions and Decorators
Design a payroll program that prompts the user to enter an employee’s hourly pay rate and the
number of hours worked. Validate the user’s input so that only pay rates in the range of Php 40.00
through Php 250.00 and hours in the range of 0 through 48 are accepted. The program should
display the employee’s gross pay.
Note: Create 3 function: to get hourly pay rate, get hours worked and to compute for the gross pay.
www.batstate-u.edu.ph coe.alangilan@g.batstate-u.edu.ph