The $p V$ diagram in Figure 16.16 shows a general Carnot cycle for an engine, with the hot and cold thermal reservoir segments identified. Segments $a b$ and $c d$ are isothermal, while the other two are adiabatic. (a) If this engine is used as a heat engine, what is the direction of the cycle, clockwise or counterclockwise? In which segments does heat enter the gas, and in which ones does it leave the gas? (b) If the engine is used as a refrigerator, what is the direction of the cycle? In which segments does heat enter the gas, and in which ones does it leave the gas? Also, which segments take place at the inside of the refrigerator, and which ones occur in the air of the room in which the refrigerator is operating? (c) If the engine is used as a heat pumpair conditioner, what is the direction of the cycle, and in which segments does heat enter the gas and in which ones does it leave the gas? Which segments take place inside of the house, and which ones occur outside? (d) If the engine is used as a heat pump-house heater, what is the direction of the cycle? In which segments does heat enter the gas, and in which ones does it leave the gas? Which segments take place inside of the house, and which ones occur outside?