summaryrefslogtreecommitdiff
path: root/3845/CH1/EX1.4/Ex1_4.sce
blob: 80061116d4f1a44867638a40184b433051b24933 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
//Example 1.4
vol_stack=6*3*0.5;//Volume of a stack of 100 bills(in^3)=length(in)*width(in)*height(in)
n_stacks=(1*10^12)/(1*10^4);//Number of stacks=(1 trillion $)/(dollars in a stack of 100$ bills)
area=100*50*(3/1)*(3/1)*(12/1)*(12/1);//Area of football field (in^2)=length(yards)*width(yards)*conversion sq.yards to sq.in
tot_vol=vol_stack*n_stacks;//Total volume of bills (in^3)
height=tot_vol/area;//Height of bills (in)
printf('Height of money = %0.2f in',height)
printf('\nHeight of money = %0.2f ft',height/12)
//Answers vary greatly because of the large approximations made in the textbook
//Openstax - College Physics
//Download for free at http://cnx.org/content/col11406/latest