Please give complete answers and details on how to think about these problems. Also, explain reasoning on how you get your answer please!
Predict the signs of q and w for the following:
A. Condensing water in an exothermic process at P=1 atm and T=370K. H20(g) -> H20(l)
B. Subliming CO2(dry ice) - an endothermic process at P=1 atm and T=298K CO2(s) -> CO2(g)
SHOW YOUR REASONING FOR BOTH PLEASE!