Answer
w is defined as the work done by the system or work done on the system by the surroundings. If work is done by the system, its sign will be positive and if work is done on the system, its sign will be negative. Work is a part of the energy change in the system
Work Step by Step
As above