Then I have made it. This program calculate formula weight and percent of each elements for the given chemical formula. Thank you very much, Masao. Of course, xmolwt shall be available by compliling from SRPM on the all other Linux distributions. First, input the chemical formula which is constructed by the elemental symbols and numbers at the text field on the top of the window.
White spaces are available to separate the elemental symbols.
You can use lower-case in such elemental symbols as h2o, if there are no ambiguity in the given chemical formula. In order to avoid that ambiguity, a white space can be used as a delimiter. Then the formula weight and percent of each elements are printed out. 3-2 Resources X11 has the mechanism about GUI resources, which easily changes the look and feel of the programs. And the second example is as follows.