summaryrefslogtreecommitdiff
path: root/1553/CH18/EX18.9/18Ex9.sce
diff options
context:
space:
mode:
Diffstat (limited to '1553/CH18/EX18.9/18Ex9.sce')
-rw-r--r--1553/CH18/EX18.9/18Ex9.sce11
1 files changed, 11 insertions, 0 deletions
diff --git a/1553/CH18/EX18.9/18Ex9.sce b/1553/CH18/EX18.9/18Ex9.sce
new file mode 100644
index 000000000..ad01ff8a8
--- /dev/null
+++ b/1553/CH18/EX18.9/18Ex9.sce
@@ -0,0 +1,11 @@
+//chapter 18 Ex 9
+
+clc;
+clear;
+close;
+sTrain=54; tTrainP=20; tTrainM=12; sMan=6;
+sRelative=(sTrain-sMan)*5/18; //Difference since opposite in direction
+lTrain=sRelative*tTrainM;
+lTotal=tTrainP*sTrain*5/18;
+lPlatform=lTotal-lTrain;
+printf("The length of train is %d m and length of platform is %d m",lTrain,lPlatform);