blob: d6f5161472bfde1e7108cb314d8ae016ff5e28fd (
plain)
1
2
3
4
5
6
7
8
9
10
11
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");
|