summaryrefslogtreecommitdiff
path: root/1553/CH17/EX17.5/17Ex5.sce
diff options
context:
space:
mode:
Diffstat (limited to '1553/CH17/EX17.5/17Ex5.sce')
-rw-r--r--1553/CH17/EX17.5/17Ex5.sce8
1 files changed, 8 insertions, 0 deletions
diff --git a/1553/CH17/EX17.5/17Ex5.sce b/1553/CH17/EX17.5/17Ex5.sce
new file mode 100644
index 000000000..0fdebd7b0
--- /dev/null
+++ b/1553/CH17/EX17.5/17Ex5.sce
@@ -0,0 +1,8 @@
+//chapter 17: Ex5
+clc;
+clear;
+close;
+time=1+(24/60); //converting into hours
+speed1=4; speed2=5; dist1=2/3; dist2=1-dist1;
+distanceTotal=time/(dist1/speed1+dist2/speed2);
+mprintf("Toal distance is %.0f km",distanceTotal);