Find the entropy changes associated with a heat engine that runs between hot and cold reservoirs of variable temperature.