summaryrefslogtreecommitdiff
path: root/1553/CH26/EX26.1/26Ex1.sce
diff options
context:
space:
mode:
Diffstat (limited to '1553/CH26/EX26.1/26Ex1.sce')
-rw-r--r--1553/CH26/EX26.1/26Ex1.sce11
1 files changed, 11 insertions, 0 deletions
diff --git a/1553/CH26/EX26.1/26Ex1.sce b/1553/CH26/EX26.1/26Ex1.sce
new file mode 100644
index 000000000..abaf83e08
--- /dev/null
+++ b/1553/CH26/EX26.1/26Ex1.sce
@@ -0,0 +1,11 @@
+//chapter 26 Ex 1
+
+clc;
+clear;
+close;
+Dist=28; t=7;
+Btime=(t/Dist)*1000;
+Atime=Btime-t;
+Atime_min=(round(Atime/60));
+Atime_sec=(modulo(Atime,240));
+printf("Time of A over course is %d min %d sec",Atime_min,Atime_sec);