summaryrefslogtreecommitdiff
path: root/2666/CH12/EX12.9/12_9.sce
blob: e123781c8e02f664047e79dd1ee43698b3d020e4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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)