diff options
Diffstat (limited to '858/CH2/EX2.5')
-rwxr-xr-x | 858/CH2/EX2.5/example_5.sce | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/858/CH2/EX2.5/example_5.sce b/858/CH2/EX2.5/example_5.sce new file mode 100755 index 000000000..b4989d530 --- /dev/null +++ b/858/CH2/EX2.5/example_5.sce @@ -0,0 +1,15 @@ +clc
+clear
+printf("example 2.5 page number 72\n\n")
+
+//to find the carbon content in sample
+
+w=4.73 //in gm5
+VCO2=5.30 //in liters
+
+weight_CO2=44/22.4*VCO2;
+carbon_content=12/44*weight_CO2;
+
+percentage_content=(carbon_content/w)*100;
+
+printf("percentage amount of carbon in sample = %f",percentage_content)
|