Calculate overtime payment for employee coderinme

Calculate overtime payment for employee coderinme

Calculate overtime payment for employee coderinme
Overtime is the amount of the time that someone works beyond the normal working hours. The term is also used for the pay received for this time. The Overtime pay rates, can cause workers to work more longer hours than they would at a flat hourly rate.
So In the following program we will be Calculating overtime payment for 10 employee if work hour is greater than 40 then the pay is 12 per hour

#!/usr/bin/env python
for i in range(1,11) :
hr=int(raw_input("No of hours worked for employee "+str(i)+": "))
if hr > 40 :
overtime = ( hr - 40 ) * 12 * 10
print 'Total overtime pay for employee ',i,' will be: Rs ',overtime
else:
print "No overtime payment"

For more programs on Python, visit our Python Coder Archives

Overtime Payment

All rights reserved. No part of this Post may be copied, distributed, or transmitted in any form or by any means, without the prior written permission of the website admin, except in the case of brief quotations embodied in critical reviews and certain other noncommercial uses permitted by copyright law. For permission requests, write to the owner, addressed “Attention: Permissions Coordinator,” to the admin @coderinme

Leave a reply:

Your email address will not be published.