summaryrefslogtreecommitdiff
path: root/2870/CH4/EX4.14/Ex4_14.sce
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /2870/CH4/EX4.14/Ex4_14.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 '2870/CH4/EX4.14/Ex4_14.sce')
-rwxr-xr-x2870/CH4/EX4.14/Ex4_14.sce29
1 files changed, 29 insertions, 0 deletions
diff --git a/2870/CH4/EX4.14/Ex4_14.sce b/2870/CH4/EX4.14/Ex4_14.sce
new file mode 100755
index 000000000..eeaba23d5
--- /dev/null
+++ b/2870/CH4/EX4.14/Ex4_14.sce
@@ -0,0 +1,29 @@
+clc;clear;
+//Example 4.14
+
+//given data
+m=90;
+
+//from Tables 4–1 and 4–2
+Ehb=275;//hamburger
+Ef=250;//fries
+Ec=87;//cola
+
+//calculation
+
+//part a
+Ein=2*Ehb+Ef+Ec;
+//The rate of energy output for a 68-kg man watching TV is to be 72 Calories/h
+Eout=m*72/68;
+t=Ein/Eout;
+disp(t,'by watching TV in hours');
+
+//part b
+//The rate of energy output for a 68-kg man watching TV is to be 860 Calories/h
+Eout=m*860/68;
+t=Ein/Eout*60//converting in min
+t=ceil(t);
+disp(t,'by fast swimming in mins');
+
+//for last question
+disp('answers be for a 45-kg man energy takes twice as long in each case');