//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)