summaryrefslogtreecommitdiff
path: root/2510/CH23/EX23.6/Ex23_6.sce
blob: 4c50544f724c1646a73f590061be7ecc7fb528c5 (plain)
1
2
3
4
5
6
7
8
9
10
11
//Variable declaration:
Q = 20000                   //Fuel input (Btu)
e = 1                       //Energy produced (kW.h)
Btu = 3412                  //Units Btu in 1 kW.h

//Calulation:
ER = Q/Btu                  //Energy requirement in 1990 (kW.h)
E = e/ER*100                //Efficiency of energy conversion (%)

//Result:
printf("The efficiency of energy conversion is : %.1f %%",E)