Function to calculate concentration from the given mass of solute and volume of a solution
double get_concentration ( double mass , double volume ) { if ( volume == 0 ) return -1 ; else return ( mass / volume ) * 1000 ; }