Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 1

College of Engineering – Department of Electrical Engineering

Laboratory 5
Chapter 6: Functions and Decorators

A. Payroll Program with 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.

Create a decorator: To display the welcome message for the user.

Alangilan, Batangas City, Philippines +63 43 425 - 0139 loc. 2121

www.batstate-u.edu.ph coe.alangilan@g.batstate-u.edu.ph

You might also like