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 /2510/CH3/EX3.4 | |
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 '2510/CH3/EX3.4')
-rwxr-xr-x | 2510/CH3/EX3.4/Ex3_4.sce | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/2510/CH3/EX3.4/Ex3_4.sce b/2510/CH3/EX3.4/Ex3_4.sce new file mode 100755 index 000000000..97904c66b --- /dev/null +++ b/2510/CH3/EX3.4/Ex3_4.sce @@ -0,0 +1,25 @@ +//Variable Declaration: +Q1 = 20.0 //Mass (lb) (part 1) +MH = 1.008 //Molecular weight of H (lb/lbmol) +MO = 15.999 //Molecular weight of O (lb/lbmol) +Q2 = 454 //Gram in pound (part 2) +Q3 = 6.023*10**23 //Avogadro nuber (part 3) + +//Calculations: +Mol = 2*MH+MO //Molecular weight of water (lb/lbmol) +A1 = Q1/Mol //Pound.moles of water (lbmol) +A2 = Q1*Q2/Mol //Gram.moles of water (gmol) +A3 = A2*Q3 //Molecules of water (molecules) + +//Results: +disp("1. Pound.moles of water is:") +disp(A1) +disp("lbmol water") + +disp("2. Gram.moles of water is:") +disp(A2) +disp("gmol water") + +disp("3. Molecules of water is:") +disp(A3/10**26) +disp(" x 10**26 molecules") |