blob: eeaba23d58f31fed68dc5aae56ef866bf2547859 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
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');
|