diff options
author | prashantsinalkar | 2017-10-10 12:27:19 +0530 |
---|---|---|
committer | prashantsinalkar | 2017-10-10 12:27:19 +0530 |
commit | 7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (patch) | |
tree | dbb9e3ddb5fc829e7c5c7e6be99b2c4ba356132c /3845/CH1/EX1.4 | |
parent | b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (diff) | |
download | Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.gz Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.bz2 Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.zip |
initial commit / add all books
Diffstat (limited to '3845/CH1/EX1.4')
-rw-r--r-- | 3845/CH1/EX1.4/Ex1_4.sce | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/3845/CH1/EX1.4/Ex1_4.sce b/3845/CH1/EX1.4/Ex1_4.sce new file mode 100644 index 000000000..80061116d --- /dev/null +++ b/3845/CH1/EX1.4/Ex1_4.sce @@ -0,0 +1,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
+
|