summaryrefslogtreecommitdiff
path: root/416/CH7/EX7.1/exp7_1.sce
diff options
context:
space:
mode:
Diffstat (limited to '416/CH7/EX7.1/exp7_1.sce')
-rwxr-xr-x416/CH7/EX7.1/exp7_1.sce16
1 files changed, 16 insertions, 0 deletions
diff --git a/416/CH7/EX7.1/exp7_1.sce b/416/CH7/EX7.1/exp7_1.sce
new file mode 100755
index 000000000..015bb67c2
--- /dev/null
+++ b/416/CH7/EX7.1/exp7_1.sce
@@ -0,0 +1,16 @@
+clear
+clc
+disp("exanple7.1")
+pow=100*10^6
+calv=6400
+threff=0.3
+elceff=0.92
+kcal=0.239*10^-3
+eo=pow*3600
+ei=eo/(threff*elceff)
+eikc=ei*kcal
+colreq=eikc/6400
+printf("energy output in 1 hour is %eWatt.sec ",eo);
+printf("\nenergy input in one hour is %ejoules Watt.sec\n",ei)
+printf(" energy input in 1 hour is %ekcal.",eikc);
+printf("\n coal required is %.3fkg per hour",colreq);