Problem
Make a java beginner program that calculates the grams of a molecule according to the given moles. They will have a private attribute called molecule which will be String. Tip Use the List class. Assume that your molecule has only one-letter elements (eg, H, C, O, and not Fe, Ca, etc.).
Output: -------------------------------------------------- --------------------------------------------------
Which molecule do you want to look for the grams? CO2
How many moles does the CO2 molecule have? 4.55
Enter the atomic mass for each element:
Atomic mass for C: 12
Atomic mass for O: 16
Molecular mass of CO2 is 44 grams.
There are 200.2 grams of CO2 in 4.55 moles.