summaryrefslogtreecommitdiff
path: root/1100/CH3/EX3.4/3_4.sce
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /1100/CH3/EX3.4/3_4.sce
downloadScilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip
initial commit / add all books
Diffstat (limited to '1100/CH3/EX3.4/3_4.sce')
-rwxr-xr-x1100/CH3/EX3.4/3_4.sce25
1 files changed, 25 insertions, 0 deletions
diff --git a/1100/CH3/EX3.4/3_4.sce b/1100/CH3/EX3.4/3_4.sce
new file mode 100755
index 000000000..a0154e83e
--- /dev/null
+++ b/1100/CH3/EX3.4/3_4.sce
@@ -0,0 +1,25 @@
+clc
+//initialisation of variables
+m= 40 //lb
+m1= 10 //lb
+cp= 1.00 //Btu/lb F
+cp1= 0.501 //Btu/lb F
+cp2= 0.092 //Btu/lb F
+L= 143.3 //btu/lb
+L1= 120 //btu/lb
+T1= 22 //F
+T2= 32 //F
+T3= 40 //F
+T4= 70 //F
+//CALCULATIONS
+Qa= cp1*(T2-T1)
+Qb= L
+Qc= cp*(T3-T2)
+Qd= m*cp*(T3-T4)
+mi= -Qd/(Qa+Qb+Qc)
+Qe= m1*cp2*(T3-T4)
+mi1= -Qe/(Qa+Qb+Qc)
+//RESULTS
+printf ('Ice weight= %.2f lb of ice',mi)
+printf (' \n Additional ice required= %.3f lb of ice',mi1)
+