summaryrefslogtreecommitdiff
path: root/3845/CH1/EX1.4
diff options
context:
space:
mode:
Diffstat (limited to '3845/CH1/EX1.4')
-rw-r--r--3845/CH1/EX1.4/Ex1_4.sce12
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
+