summaryrefslogtreecommitdiff
path: root/1958/CH2/EX2.8
diff options
context:
space:
mode:
Diffstat (limited to '1958/CH2/EX2.8')
-rwxr-xr-x1958/CH2/EX2.8/Chapter2_example8.sce15
1 files changed, 15 insertions, 0 deletions
diff --git a/1958/CH2/EX2.8/Chapter2_example8.sce b/1958/CH2/EX2.8/Chapter2_example8.sce
new file mode 100755
index 000000000..e35372e2c
--- /dev/null
+++ b/1958/CH2/EX2.8/Chapter2_example8.sce
@@ -0,0 +1,15 @@
+clc
+clear
+//Input data
+m=50//Mass of the object in kg
+v=8//Speed in m/s
+t=4//Time taken in s
+
+//Calculations
+a=(v-0)/t//Acceleration in m/s^2
+s=(v^2/(2*a))//Distance in m
+W=(m*a*s)//Workdone in J
+P=(W/t)//Power delivered in watt
+
+//Output
+printf('Workdone on the object is %i J \n The average power delivered by the force in the first %i s is %i watt',W,t,P)