write a Python program that prompts theemployee for five pieces of information then calculates anemployee’s total wages for a week.
Prompt for the following information:
- name
- basePay
- regHours
- overtimePay
- overtimeHours
Then calculate the employee’s weekly wage with a 10% taxrate.
Finally, display a descriptive message thatincludes the five pieces of information you got from the user aswell as the tax rate and their weekly wage. Also, make sure thefloating point values are displaying with 2 decimal places.
I
Solution
# get user name
name = input(‘Enter name :’)
# get the base pay
basePay =float(input(‘Enter base pay :’))
# calculate regular hours worked
regHours =float(input(‘Enter no of regularhours worked : ‘))
# CALCULATE OVERTIME PAY
overtimePay
OR
OR