clc //solution // initialization of variables Cp=1.0 // specific heat at constant pressure k=1.4 // polytropic index for air T1=25+273 // temperature at compressor inlet T3=850+273 // maximum temperature in kelvin r=5 // pressure ratio=P2/P1 & P4/P3 T2=T1*(r)^((k-1)/k) // temperature after compression T4=T3*(1/r)^((k-1)/k) // final temperature Wcomp=Cp*(T2-T1) // compressor work Wturb=Cp*(T3-T4) // turbine work BWR=Wcomp/Wturb // back work ratio printf("The BWR is %0.1f %%\n",BWR*100) effi=(1-((T1/T4)*(r^((k-1)/k))))// efficiency printf(" The thermal efficiency is %0.1f %% \n",effi*100) // The solution in textbook is incorrect dur to wrong value of T4 (temperature at state 4)