summaryrefslogtreecommitdiff
path: root/3718/CH14/EX14.7/Ex14_7.sce
blob: fd573d12d8196148ca3a99a76461636aa946e390 (plain)
1
2
3
4
5
6
7
8
9
10
11
//Chapter 14: Water Treatment
//Problem: 7
clc;

//Initialisation of Variables
v1 = 30     //in litres for NaCl
w = 1500    //in mg/L for NaCl

//Solution
hardness = 45 * 50 / 58.5 * 1000 / 1000
mprintf("Hardness of water is :%.2f ppm",hardness)