summaryrefslogtreecommitdiff
path: root/3845/CH7/EX7.13/Ex7_13.sce
blob: d9b5906c4a3adacd2e5de6ab949859019d40915e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
//Example 7.13
Energy=1000;//Energy (kJ)
E_by_time=400;//Rate of energy consumption (W)
Time=Energy*10^3/E_by_time;//Time (s)
printf('Duration of bicycling required per day = %0.1f min',Time/60)
//Discussion
Fat_loss=Energy*1/39;//Fat loss if energy content of fat is assumed to be 39kJ/g (g)
printf('\nDiscussion:\nFat loss = %0.1f g',Fat_loss)
//Answers vary due to round off error 
//Openstax - College Physics
//Download for free at http://cnx.org/content/col11406/latest