summaryrefslogtreecommitdiff
path: root/575/CH3/EX3.3.1/3_3_1.sce
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /575/CH3/EX3.3.1/3_3_1.sce
downloadScilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip
initial commit / add all books
Diffstat (limited to '575/CH3/EX3.3.1/3_3_1.sce')
-rwxr-xr-x575/CH3/EX3.3.1/3_3_1.sce20
1 files changed, 20 insertions, 0 deletions
diff --git a/575/CH3/EX3.3.1/3_3_1.sce b/575/CH3/EX3.3.1/3_3_1.sce
new file mode 100755
index 000000000..4e93ab167
--- /dev/null
+++ b/575/CH3/EX3.3.1/3_3_1.sce
@@ -0,0 +1,20 @@
+clc
+pathname=get_absolute_file_path('3_3_1.sce')
+filename=pathname+filesep()+'331.sci'
+exec(filename)
+moles=mass/M
+printf("\n no.of moles=%f",moles)
+lbmole=moles/453.6
+printf("\n no.of lb moles=%f",lbmole)
+Cmoles=moles
+printf("\n no.of moles of carbon=%f",Cmoles)
+Omoles=2*moles
+printf("\n no.of moles of oxygen=%f",Omoles)
+O2moles=moles
+printf("\n no.of moles of dioxygen=%f",O2moles)
+gramsO=Omoles*16
+printf("\n no.of grams of oxygen=%f",gramsO)
+gramsO2=O2moles*32
+printf("\n no.of grams of oxygen=%f",gramsO2)
+moleculesCO2=moles*6.02*10^(23)
+printf("\n no.of molecules of CO2 = %E",moleculesCO2) \ No newline at end of file