summaryrefslogtreecommitdiff
path: root/1529/CH1/EX1.5/1_05.sce
diff options
context:
space:
mode:
Diffstat (limited to '1529/CH1/EX1.5/1_05.sce')
-rwxr-xr-x1529/CH1/EX1.5/1_05.sce11
1 files changed, 11 insertions, 0 deletions
diff --git a/1529/CH1/EX1.5/1_05.sce b/1529/CH1/EX1.5/1_05.sce
new file mode 100755
index 000000000..febeac82e
--- /dev/null
+++ b/1529/CH1/EX1.5/1_05.sce
@@ -0,0 +1,11 @@
+//Chapter 1, Problem 5
+clc;
+M=1000; //mass in kg
+H=10; //height in metre
+T=20; //time in seconds
+g=9.81; //acceleration due to gravity
+F=M*g; //calculating force from newtons law of motion
+W=F*H; //calculating work
+printf("(a) Work done = %f kJ\n\n\n",W/1000);
+P=W/T;
+printf("(b) Power developed = %f kW",P/1000);