summaryrefslogtreecommitdiff
path: root/2339/CH1/EX1.1.4/Ex1_4.sce
diff options
context:
space:
mode:
Diffstat (limited to '2339/CH1/EX1.1.4/Ex1_4.sce')
-rwxr-xr-x2339/CH1/EX1.1.4/Ex1_4.sce11
1 files changed, 11 insertions, 0 deletions
diff --git a/2339/CH1/EX1.1.4/Ex1_4.sce b/2339/CH1/EX1.1.4/Ex1_4.sce
new file mode 100755
index 000000000..cc03dbed9
--- /dev/null
+++ b/2339/CH1/EX1.1.4/Ex1_4.sce
@@ -0,0 +1,11 @@
+clc
+clear
+
+m=3000; //mass in kg
+P=736; //Power in kW
+t=5*3600; //Time in seconds
+HV=27170 //Heating value in kJ/kg
+
+E=P/((m/t)*HV);
+Eff=E*100;
+printf('Thermal Efficiency= %2.2f percent',Eff);