summaryrefslogtreecommitdiff
path: root/2513/CH2/EX2.7/2_7.sce
blob: 44cab5f6b3d6c2f5d1c9bc203610066957d5c6ae (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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)