This program calculates the molar mass of a given compound. The compound can be an element (such as H), binary compound (such as NaCl), or can even be composed of multiple compounds separated by an asterisk (such as KNa*H2O).
Sample inputs:
H Cu(NO3)2 3AgNO3 KNaC4H4O6*4H2O Al2(SO4)3*Cu(OH)2
Corresponding outputs (amu):
1.01 187.57 509.64 282.25 439.74