Answer to Question #275485 in Python for den

Question #275485

Workers of Maunlad corp. have a regular working hours of 40 hours per week and

are paid with an hourly rate of P150 per hour. However, if a worker rendered more

than 40 hours in a week the excess hours are paid 75% more. Write a program that

inputs the number of hours rendered by a worker in 1 week then display his/her

salary.


1
Expert's answer
2021-12-05T02:15:12-0500
input1 = int(input('Enter no hours per week: '))
if input1 > 40:
    n1 = input1-40
    print((40*150) + n1*1.75*150)
else:
    print(40*150)

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS