A cylinder fitted with a piston has a volume of 2ft^3 and contains 0.5 lbm of steam at 60 psia. Heat is tranferred to the stream until the temperatureis 500 F, while the pressure remains constant. Determine the heat transfer and the work for this process.