//example 11 //Determining the final temperature of steam clear clc u2=3040.4 //final internal energy in kJ/kg hi=u2 //in kJ/kg P2=1.4 //final Pressure in MPa disp('Since, the final pressure is given as 1.4 MPa,we know two properties at the final state and hence,final state can be determined.The temperature corresponding to a pressure of 1.4 MPa and an internal energy of 3040.4 kJ/kg is found to be ') T2=452 //final temperature in Celsius