diff options
Diffstat (limited to '2513/CH2/EX2.2')
-rwxr-xr-x | 2513/CH2/EX2.2/2_2.sce | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/2513/CH2/EX2.2/2_2.sce b/2513/CH2/EX2.2/2_2.sce new file mode 100755 index 000000000..603c5a619 --- /dev/null +++ b/2513/CH2/EX2.2/2_2.sce @@ -0,0 +1,22 @@ +clc
+//initialisation of variables
+m=17.378//mg
+h=20//in/sq mile
+d=365//in
+s=0.75//percent
+a=100//sq miles
+p=750000//gpd per sq mile
+t=180//in
+c=150//gpcd
+n=64699 //gpd per sq mile
+//CALCULATIONS
+R=h*m//mg
+A=R/d//mgd
+S=s*a*t//billion gal
+Q=a*p/c//gpd
+P=a*n/c//people against
+//RESULTS
+printf('the surface water sheds and storage requirements=% f mg',R)
+printf('the well watered sections of north america=% f billion gal',S)
+printf('the average consumpition populations=% f gpd',Q)
+printf('the presence of proper storage=% f people against',P)
|