summaryrefslogtreecommitdiff
path: root/608/CH1/EX1.05/1_05.sce
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /608/CH1/EX1.05/1_05.sce
downloadScilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip
initial commit / add all books
Diffstat (limited to '608/CH1/EX1.05/1_05.sce')
-rwxr-xr-x608/CH1/EX1.05/1_05.sce15
1 files changed, 15 insertions, 0 deletions
diff --git a/608/CH1/EX1.05/1_05.sce b/608/CH1/EX1.05/1_05.sce
new file mode 100755
index 000000000..585ab8840
--- /dev/null
+++ b/608/CH1/EX1.05/1_05.sce
@@ -0,0 +1,15 @@
+//Problem 1.05: A mass of 1000 kg is raised through a height of 10m in 20s. What is (a) the work done and (b) the power developed?
+
+//initializing the variables:
+M = 1000; // in Kg
+h = 10; // in m
+t = 20; // in sec
+g = 9.81 // in m/s2
+
+//calculation:
+W = M*g*h
+P = W/t
+
+printf("\n\nResult\n\n")
+printf("\nWork Done: %.0f Joule(J)\n",W)
+printf("\nPower: %.0f watt(W)\n",P) \ No newline at end of file