summaryrefslogtreecommitdiff
path: root/3856/CH4/EX4.2/Ex4_2.sce
blob: 1ae4f6276746c87cf9835b8b8310f0e5e0e7b3eb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
//How high the person can climb on this energy intake

//Example4.2

clc;

clear;

M=73;  //Weight of the person in kg

m=500;  //Mass of milk that person drink in g 

Cv=720;  //Caloric value of milk in cal g^-1

Mw=17;  //Percant of milk that converted in mechanical work

W=(Mw*m*Cv*4.184)/100;  //Energy intake for mechanical work in J

g=9.81;  //Acceleration due to gravity in m s^-2

h=W/(M*g); //Person climb by this height in m

printf("The person climbs to a height = %.1f*10^2 m",h*10^-2);