blob: b8a2dfab86e479a0315595d13d963ed0eb158ff4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
clc
clear
//Input data
n1=0.5//Efficiency of mercury
n2=0.4//Efficiency of steam
n3=0.25//Efficiency of composite cycle
//Calculations
n=(1-(1-n1)*(1-n2)*(1-n3))*100//Overall efficiency of the combined cycle in percent
//Output
printf('The overall efficiency of the combined cycle is %3.1f percent',n)
|