diff options
author | priyanka | 2015-06-24 15:03:17 +0530 |
---|---|---|
committer | priyanka | 2015-06-24 15:03:17 +0530 |
commit | b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch) | |
tree | ab291cffc65280e58ac82470ba63fbcca7805165 /1436/CH4/EX4.11/ex4_11.sce | |
download | Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2 Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip |
initial commit / add all books
Diffstat (limited to '1436/CH4/EX4.11/ex4_11.sce')
-rwxr-xr-x | 1436/CH4/EX4.11/ex4_11.sce | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/1436/CH4/EX4.11/ex4_11.sce b/1436/CH4/EX4.11/ex4_11.sce new file mode 100755 index 000000000..e9b70c977 --- /dev/null +++ b/1436/CH4/EX4.11/ex4_11.sce @@ -0,0 +1,22 @@ +// Example 4.11, page no-213
+clear
+clc
+
+//(a)
+v_obj=2/1000
+wt=1.5
+dx=wt/v_obj
+sg=dx/1000
+printf("(a)\nSpecific Gravity = %.2f",sg)
+
+//(b)
+sgl=0.8
+dens=800
+W1=dens*v_obj-wt
+printf("\n(b)\nW1 = %.1f kg",W1)
+
+//(c)
+sg2=1.2
+dens2=1200
+W2=dens2*v_obj-wt
+printf("\n(c)\nW2 = %.1f kg",W2)
|