blob: 44b61f8553ee0b60e1b4bf30e432769cf6921939 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
clc
//initialisation of variables
Q= 30 //gallons/head
C= 78
n= 100000
d= 3 //miles
l= 40 //ft
//CALCULAIONS
st= Q*n
Q1= st/(6.24*2*8*60^2)
i= l/(d*5280)
d= (4*Q1*sqrt(4/i)/(%pi*C))^(2/5)
//RESULTS
printf ('size of pipe= %.2f ft',d)
|