summaryrefslogtreecommitdiff
path: root/2666/CH12/EX12.9/12_9.sce
diff options
context:
space:
mode:
Diffstat (limited to '2666/CH12/EX12.9/12_9.sce')
-rwxr-xr-x2666/CH12/EX12.9/12_9.sce15
1 files changed, 15 insertions, 0 deletions
diff --git a/2666/CH12/EX12.9/12_9.sce b/2666/CH12/EX12.9/12_9.sce
new file mode 100755
index 000000000..e123781c8
--- /dev/null
+++ b/2666/CH12/EX12.9/12_9.sce
@@ -0,0 +1,15 @@
+clc
+//initialisation of variables
+p1=140000//Btu per gal
+h=0.75//percent
+p2=40000//Btu per gal
+h1=4.3//ft
+h2=0.746//ft
+p3=1.25//ft
+f=10//cents a gal
+//CALCULATIONS
+H=h1*h2*p3//cents per hr
+B=p2/(p1*h)*f//cents per lb
+//RESULTS
+printf('the cost of operating the heat pump is=% f cents per hr',H)
+printf('the oil burner the cost is =% f cents per lb',B)