Write Python Program Prompts Employee Five Pieces Information Calculates Employee S Total Q37077493

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:

  1. name
  2. basePay
  3. regHours
  4. overtimePay
  5. 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

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.