1. A heat engine receives 7000 J of heat and loses 3000 J in each cycle. What is the amount of work done by this engine?

really? surely you just subtract losses from input to get the work done.

see

labman.phys.utk.edu/phys221core/modules/m10/second_law.html