rankine cycle
Objective: %Rankine cycle disp(\'Process 1-2 : Isentropic expansion\'); disp(\'Process 2-3 : Constant pressure heat rejection\'); disp(\'Process 3-4 : Isentropic compression\'); disp(\'Process 4-1 : Constant pressure heat addition\'); p1 = input(\'Enter the pressure of steam at the inlet of turbine (in bar) : \'); T1 = input(\'Enter…