summaryrefslogtreecommitdiff
path: root/24/CH2/EX2.1.d
diff options
context:
space:
mode:
Diffstat (limited to '24/CH2/EX2.1.d')
-rwxr-xr-x24/CH2/EX2.1.d/Example2_1d.sce12
-rwxr-xr-x24/CH2/EX2.1.d/Example2_1d_result.txt2
2 files changed, 14 insertions, 0 deletions
diff --git a/24/CH2/EX2.1.d/Example2_1d.sce b/24/CH2/EX2.1.d/Example2_1d.sce
new file mode 100755
index 000000000..49520d56b
--- /dev/null
+++ b/24/CH2/EX2.1.d/Example2_1d.sce
@@ -0,0 +1,12 @@
+//Given that
+exec('Example2_1a.sce', -1)
+exec('Example2_1a.sce', -1)
+clc
+
+//Sample Problem 2-1d
+printf("\n**Sample Probelm 2-1d**\n")
+time_station = 45 //in min
+//he trevels 2 km back to the truck
+final_displacement = overall_displacement + 2 //in km
+final_average_velocity = final_displacement /(delta_t + time_station /60)
+printf("Average velocity from the begining of the drive till reaching back to the truck is %f km/h", final_average_velocity) \ No newline at end of file
diff --git a/24/CH2/EX2.1.d/Example2_1d_result.txt b/24/CH2/EX2.1.d/Example2_1d_result.txt
new file mode 100755
index 000000000..a4c08a955
--- /dev/null
+++ b/24/CH2/EX2.1.d/Example2_1d_result.txt
@@ -0,0 +1,2 @@
+**Sample Probelm 2-1d**
+Average velocity from the begining of the drive till reaching back to the truck is 9.051095 km/h \ No newline at end of file