summaryrefslogtreecommitdiff
path: root/2513/CH2/EX2.7
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /2513/CH2/EX2.7
downloadScilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip
initial commit / add all books
Diffstat (limited to '2513/CH2/EX2.7')
-rwxr-xr-x2513/CH2/EX2.7/2_7.sce16
1 files changed, 16 insertions, 0 deletions
diff --git a/2513/CH2/EX2.7/2_7.sce b/2513/CH2/EX2.7/2_7.sce
new file mode 100755
index 000000000..44cab5f6b
--- /dev/null
+++ b/2513/CH2/EX2.7/2_7.sce
@@ -0,0 +1,16 @@
+clc
+//initialisation of variables
+w=100000//ft
+c=250//per capita
+p1=0.3//percent
+p2=0.1//percent
+p3=0.60//percent
+w1=15//mgd
+//CALCULATIONS
+T=c*w//$
+W=p1*T//$
+W1=p2*T//$
+W2=p3*T//$
+W3=((w1)^2/3)*T//$
+//RESULTS
+printf('the replacement cost of the water of a city=% f $',W3)