summaryrefslogtreecommitdiff
path: root/2510/CH6/EX6.3/Ex6_3.sce
diff options
context:
space:
mode:
Diffstat (limited to '2510/CH6/EX6.3/Ex6_3.sce')
-rwxr-xr-x2510/CH6/EX6.3/Ex6_3.sce14
1 files changed, 14 insertions, 0 deletions
diff --git a/2510/CH6/EX6.3/Ex6_3.sce b/2510/CH6/EX6.3/Ex6_3.sce
new file mode 100755
index 000000000..04ee86ff6
--- /dev/null
+++ b/2510/CH6/EX6.3/Ex6_3.sce
@@ -0,0 +1,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)