summaryrefslogtreecommitdiff
path: root/3648/CH6/EX6.3/Ex6_3.sce
diff options
context:
space:
mode:
Diffstat (limited to '3648/CH6/EX6.3/Ex6_3.sce')
-rw-r--r--3648/CH6/EX6.3/Ex6_3.sce11
1 files changed, 11 insertions, 0 deletions
diff --git a/3648/CH6/EX6.3/Ex6_3.sce b/3648/CH6/EX6.3/Ex6_3.sce
new file mode 100644
index 000000000..ac0de7706
--- /dev/null
+++ b/3648/CH6/EX6.3/Ex6_3.sce
@@ -0,0 +1,11 @@
+//Example 6_3
+clc();
+clear;
+//To find out how fast and the direction car moving
+m1=30000 //units in Kg
+m2=1200 //units in Kg
+v10=10 //units in meters/sec
+v20=-25 //units in meters/sec
+vf=((m1*v10)+(m2*v20))/(m1+m2) //unis in meters/sec
+printf("The car is moving at vf=%.2f Meters/sec\n",vf)
+printf("The positive sign of vf Indicate the car is moving in the direction the truck was moving")