Question: Develop a GUI program that calculates an employee's pay. The program's window should have Entry widgets that let the user enter the number of weekly
Develop a GUI program that calculates an employee's pay. The program's window should have Entry widgets that let the user enter the number of weekly hours worked (float data type), and the hourly pay rate (float data type) . When the Calculate Pay button is clicked, the program should display the employee's pay. If an employee works over 40 hours in a week, the employee should get paid time and a half for the hours worked over 40.
The pay should be calculated based on the following algorithm:
pay = hours worked * pay rate
if hours worked > 40.0
pay = pay+ ((hours worked - 40.0) * (pay rate * .5))
Your GUI should look like the following:
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
