summaryrefslogtreecommitdiff
path: root/1991/CH2/EX2.5/5.sce
diff options
context:
space:
mode:
Diffstat (limited to '1991/CH2/EX2.5/5.sce')
-rwxr-xr-x1991/CH2/EX2.5/5.sce14
1 files changed, 14 insertions, 0 deletions
diff --git a/1991/CH2/EX2.5/5.sce b/1991/CH2/EX2.5/5.sce
new file mode 100755
index 000000000..012cbf572
--- /dev/null
+++ b/1991/CH2/EX2.5/5.sce
@@ -0,0 +1,14 @@
+clc
+clear
+//input
+vc=25 //velocity of car
+va=10 //velocity of wind
+va1=15 //velocity of wind westward
+//calculation
+v1=vc+va//resultant velocity for a tail of wind
+v2=vc-va//when wind blows westward at 10 m/s^resultant velocity
+v3=vc-va1//resultant velocity when wind blows westward at 15m/s^2
+//output
+printf("1. the resultant velocity of wind is %3.3f ms^-1 eastwards ",v1)
+printf("\n2. the resultant velocity of wind is %3.3f ms^-1 westwards ",v2)
+printf("\n3. the resultant velocity of wind is %3.3f ms^-1westwards ",v3)