summaryrefslogtreecommitdiff
path: root/1427/CH1/EX1.18/1_18.sce
blob: d150becd26689517618a355532f371092a5bb03e (plain)
1
2
3
4
5
6
7
8
//ques-1.18
//Calculating Hardness of a sample of water
clc
V=50000;//volume of water sample (in L)
v=200;//volume of NaCl used (in L)
s=125;//strength of NaCl used (in g/L)
h=v*s*(50/58.5)*(1000/V);//hardness (in ppm)
printf("Hardness of given sample is %.1f ppm.",h);