Carbon dioxide (CO2) enters a nozzle at 35 psia, 1400oF

Carbon dioxide (CO2) enters a nozzle at 35 psia, 1400oF and 250 ft/s and exits at 12 psia and 1200oF. Assuming the nozzle to be adiabatic and the surroundings to be at 14.7 psia and 65oF. Determine
(a) The exit velocity.
(b) The entropy generation rate in the nozzle's universe.