From b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b Mon Sep 17 00:00:00 2001 From: priyanka Date: Wed, 24 Jun 2015 15:03:17 +0530 Subject: initial commit / add all books --- 2666/CH12/EX12.9/12_9.sce | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100755 2666/CH12/EX12.9/12_9.sce (limited to '2666/CH12/EX12.9') 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) -- cgit