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

#!/bin/bash

for i in `seq 1 10`; do
read -p "Enter the total hour of work of employee $i: " temp
if [ $temp -le 40 ]; then
echo "No Overtime (<=40 hours)"
continue
fi
let over=(temp-40)*12
echo "Overtime for employee $i is: $over"
done

Output will be:img_code

For more Linux questiom

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

A web developer(Front end and Back end), and DBA at csdamu.com. Currently working as Salesforce Developer @ Tech Matrix IT Consulting Private Limited. Check me @about.me/s.saifi

Leave a reply:

Your email address will not be published.