(i) When the body will slide down on an inclined plane then the frictional force will acts upwards to the inclined plane, so the angle between the motion of the body and the frictional force will be.
Since, Work= FS cos θ
F = force
S = displacement
θ = angle between direction of force and direction of motion = 180o
So, work done = F×s cos 180o
Cos 180o = -1
So work done = - F×s
Work done by friction on a body sliding down an inclined plane will be negative.
(ii) In this case the man is doing work against the gravitational force, by applying force in an upward direction to lift the bucket. Since the direction of force applied and the direction of motion of bucket is the same, work done will be positive.
Work= FS cos θ
θ = angle between direction of force and direction of motion = 0o
Cos 0o = 1
So, work done = F × s