summaryrefslogtreecommitdiff
path: root/1457/CH8/EX8.7/8_7.sce
blob: 90798148f782002c8b8761926e7e251b7a2be493 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
clc
//Initialization of variables
g=52
Hp=2
//calculations
Q=3.48 //cfs
V6=3.48/0.196
P=-20.9 //ft
P2=P*(g/144)
//results
printf("Flow rate = %.2f cfs",Q)
printf("\n Pressure in the pipe = %.2f psi",P2)