more command-line options; export to jar file
ask for input
added charge balancing
Java project that balances reactions and computes grams/moles.
C3H5(NO3)3(s)
) from a string: src/stoichiometry/Compound.javaH2+O2
) from a string: src/stoichiometry/Expression.javaAl + I2 -> AlI3
) from a string: src/stoichiometry/Reaction.javaSample output of the program:
+---------+----------+----------+--------+----------+
| | 2 H2 | O2 | => | 2 H2O |
+---------+----------+----------+--------+----------+
| g/mol | 2.016 | 31.998 | | 18.015 |
+---------+----------+----------+--------+----------+
| mol | 6.0 | 3.0 | | 6.0 |
+---------+----------+----------+--------+----------+
| g | 12.096 | 95.994 | | 108.09 |
+---------+----------+----------+--------+----------+