summaryrefslogtreecommitdiff
path: root/1427/CH1/EX1.5/1_5.sce
blob: af2edcb74d8ab2656a371c77e46c6c0cfaefc5ac (plain)
1
2
3
4
5
6
7
8
9
10
11
12
//ques-1.5
//Calculating amount of lime required
clc
A=25;//content of Calcium carbonate in water (in ppm)
B=144;//content of Magnesium carbonate in water (in ppm)
C=95;//content of Magnesium chloride in water (in ppm)
V=50000;//volume of water given (in L)
a1=(A/100)*100;//CaCO3 equivalent of A (in ppm)
a2=(B/84)*100;//CaCO3 equivalent of B (in ppm)
a3=(C/95)*100;//CaCO3 equivalent of C (in ppm)
lime=(a1+2*a2+a3)*V*(74/100);//lime requirement (in mg)
printf("Lime required for softening is %.3f kg.",lime/1000000);