Write a GUI Python program that calculates an employee’s payusing the tkinter module that is included with Python. Theprogram’s window should have Entry widgets that let the user enterthe number of weekly hours worked (float data type), and the hourlypay rate (float data type) . When the Calculate Pay button isclicked, the program should display the employee’s pay. If anemployee works over 40 hours in a week, the employee should getpaid time and a half for the hours worked over 40.
The pay should be calculated based on the followingalgorithm:
pay = hours worked * pay rate
if hours worked > 40
pay = pay + ((hours worked – 40) * (pay rate * .5))
Your GUI should look like the following:
The GUI must include a Quitbutton and the title must be updated.
I have never written a program in creating a GUI withPython. I do have tkinter imported. Any help on this?
– O X Pay Calculator Enter the number of hours worked for the week: Enter the pay rate: Weekly Pay = Calculate Pay Quit Show transcribed image text – O X Pay Calculator Enter the number of hours worked for the week: Enter the pay rate: Weekly Pay = Calculate Pay Quit
Expert Answer
Answer to Write a GUI Python program that calculates an employee’s pay using the tkinter module that is included with Python. Th…