Q.No. - Write a program to compute the wage of daily labour as per the following rules:
a) For first 4 hrs. Rs 30/- per hr
b) For next 4 hrs. Rs 40/- per hr
c) For next 2 hrs. beyond 8 hrs. Rs 50/- per hr extra
d) For rest Rs 60/- per hr extra


Sol.-

hours=int(input("Enter work Hour"))
if hours<=4:
    wage=hours*30
elif hours<=8:
    remain=hours-4
    wage=4*30+remain*40
elif hours<=10:
    remain=hours-8
    wage=4*30+4*40+remain*50
else :
    remain=hours-10
    wage=4*30+4*40+2*50+remain*60
print("Your totale wages is ",wage)


Explain : Step 1: User enter the hours works Step 2: if condtion check hours - for which condition is true. ( Like we take hours is 7) Step 3: For hours 7 - elif(hours<=8) condition use. remain = 7-4=3. wage=4*30+3*40 Step 4: At the end we print wage- which contain total value.

OUTPUT: