summaryrefslogtreecommitdiff
path: root/1301/CH5/EX5.4/ex5_4.sce
diff options
context:
space:
mode:
Diffstat (limited to '1301/CH5/EX5.4/ex5_4.sce')
-rwxr-xr-x1301/CH5/EX5.4/ex5_4.sce7
1 files changed, 7 insertions, 0 deletions
diff --git a/1301/CH5/EX5.4/ex5_4.sce b/1301/CH5/EX5.4/ex5_4.sce
new file mode 100755
index 000000000..d33b5365c
--- /dev/null
+++ b/1301/CH5/EX5.4/ex5_4.sce
@@ -0,0 +1,7 @@
+clc;
+g=9.8; //gravitational constant in m/sec square
+h=1.5; //height in m
+m=2; //mass in kg
+W=m*g*h; //calculating weight
+disp(W,"Weight in Joule = "); //displaying result
+disp(W,"Potential Energy in Joule = "); //displaying result \ No newline at end of file