diff options
Diffstat (limited to '1427/CH1/EX1.7/1_7.sce')
-rw-r--r-- | 1427/CH1/EX1.7/1_7.sce | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/1427/CH1/EX1.7/1_7.sce b/1427/CH1/EX1.7/1_7.sce new file mode 100644 index 000000000..cc2cf901d --- /dev/null +++ b/1427/CH1/EX1.7/1_7.sce @@ -0,0 +1,13 @@ +//ques-1.7
+//Calculating amount of lime and soda required for softening hard water
+clc
+A=20;//content of Calcium cation (in ppm)
+B=18;//content of Magnesium cation (in ppm)
+C=183;//content of Hydrogen carbonate anion (in ppm)
+a1=(A/40)*100;//CaCO3 equivalent of A (in ppm)
+a2=(B/24)*100;//CaCO3 equivalent of B (in ppm)
+a3=(C/122)*100;//CaCO3 equivalent of C (in ppm)
+lime=(a2+a3)*(74/100);//lime required (in ppm)
+soda=(a1+a2-a3)*(106/100);//soda required (in ppm)
+//soda < 0, therefore
+printf("Lime required for softening hard water is %.1f ppm and Soda required is nil.",lime);
|