summaryrefslogtreecommitdiff
path: root/2021/CH1/EX1.1/Ex1_1.sce
diff options
context:
space:
mode:
Diffstat (limited to '2021/CH1/EX1.1/Ex1_1.sce')
-rwxr-xr-x2021/CH1/EX1.1/Ex1_1.sce12
1 files changed, 12 insertions, 0 deletions
diff --git a/2021/CH1/EX1.1/Ex1_1.sce b/2021/CH1/EX1.1/Ex1_1.sce
new file mode 100755
index 000000000..d6f516147
--- /dev/null
+++ b/2021/CH1/EX1.1/Ex1_1.sce
@@ -0,0 +1,12 @@
+// Finding Specific weight,Density,Specific Gravity
+//Given
+V=1/1000; //volume in m^3
+w=9.6; //weight in Newton
+g=9.81; //gravitational force in m/s^2
+//To Find
+spwt=w/V; //Specific weoght in N/m^3
+rho=spwt/g; //density in kg/m^3
+spgr=rho/1000; //Specific gravity no units
+disp("specific weight = "+string(spwt)+" N/m^3");
+disp("density = "+string(rho)+" kg/m^3");
+disp("specific gravity = "+string(spgr)+" no unit");