Question: Need this program in Java Make a program that calculates the grams of a molecule according to the given moles. They will have a private

Need this program in Java Make a 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.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!