diff options
Diffstat (limited to '2870/CH4/EX4.14/Ex4_14.sce')
-rwxr-xr-x | 2870/CH4/EX4.14/Ex4_14.sce | 29 |
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');
|