// Display mode mode(0); // Display warning for floating point exception ieee(1); clear; clc; disp("Engineering Thermodynamics by Onkar Singh Chapter 8 Example 5") P=50*10^3;//output of plant in KW Cpw=4.18;//specific heat of water in KJ/kg K Tw_in=15;//cooling water entering condenser temperature in degree celcius Tw_out=30;//cooling water leaving condenser temperature in degree celcius disp("from steam table,at inlet to turbine,") disp("h2=h_10MPa,700oc") disp("h2=3870.5 KJ/kg,s2=7.1687 KJ/kg K") h2=3870.5; s2=7.1687; s3=s2; disp("for process 2-3,s2=s3 and s3