Question

2-24C A room is heated as a result of solar radiation coming in through the windows. Is this a heat or work interaction for the room?2-25C A gas in a

piston-cylinder device is compressed, and as a result its temperature rises. Is this a heat or work interaction?

Fig: 1