Labour payment calculation program.

Write a program using the following condition.
1. If any employee works 40 hours or less. Then gross payment  will be hours multiplies by rate
2. If any employee works more then 40 hours. Then gross payment will be hours multiplies by rate. He also gate extra 200 Tk.

Program:
#include<stdio.h>
main(){
float hour, rate, grosspay;

printf("Enter houre = ");
scanf("%f", &hour);

printf("Enter rate = ");
scanf("%f", &rate);

if(hour<=40)
grosspay=hour*rate;

else
grosspay=hour*rate+200;

printf("Grosspay = %.2f", grosspay);
}

Loading
Twitter Delicious Facebook Digg Stumbleupon Favorites More

 
Flying Twitter Bird Widget By ICT Sparkle