summaryrefslogtreecommitdiff
path: root/1478/CH2/EX2.18.20/2_18_20.sce
blob: 51c4197493a0146eefc8875b5804f2b2524688f7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
//water and its treatment//
//example 2.18.20//
clc
strength_SH=1//in terms of mgs/lit//
volume_SH=50//in terms of ml//
volume_H=50//in terms of ml//
EDTA_SH=20//volume for Std hardwater(ml)//
EDTA_H=25//volume for sample hardwater(ml)//
AB_EDTA=18//volume required after boiling(ml)//
CaCO3_equivalent_SH=strength_SH*volume_SH//in terms of CaCO3 equivalent//
one_ml_EDTA=CaCO3_equivalent_SH/EDTA_SH//in terms of CaCO3 equivalent//
To_sample=one_ml_EDTA*EDTA_H/volume_H//total hardness for given volume//
To=To_sample*1000//total hardness per litre(ppm)//
P_sample=AB_EDTA*one_ml_EDTA/volume_H//permanent hardness for given volume//
P=P_sample*1000//permanent hardness per litre(ppm)//
T=To-P
printf("\nTotal Hardness is %.f mg/l or ppm",To);
printf("\nPermanent Hardness is %.f mg/l or ppm",P);
printf("\nTemporary Hardness is %.f mg/l or ppm",T);