summaryrefslogtreecommitdiff
path: root/2510/CH6/EX6.3/Ex6_3.sce
blob: 04ee86ff6ab87595342ee23b564750d225cb3982 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
//Variable declaration:
ID = 0.957                  //Inside diameter of pipe (in)
OD = 1.315                  //Outside diameter of pipe (in)
WT = 0.179                  //Wall thickness of pipe (in)
PW = 2.17                   //Weight of pipe (lb/ft)

//Calculation:
//From Table 6.2, it indicates that the steel pipe is 1 inch schedule 80.
NSP = 1
SN = 80

//Result:
printf("The nominal size of the pipe is : %f in.",NSP)
printf("The schedule number of the pipe is: %f .",SN)