Develop a python program that will determine the required mass of one compound based on three parameters: (1) compound name, (2) liters of solution, and (3) molarity The input should be in a single text file (input.txt). The required mass should be in a single text file (output.txt). Only two decimal places should be included in the output.txt. You can use the three files here https://filebin.net/twyx8f7q8lqr1cno to aid in doing the program -main.py includes the logic behind how output.txt is made based on the input.txt -compound.py. includes the strructure of compound class -periodictable.csv contains the information of the elements in the chemistry table of elements Example: ***input.txt*** compound,liter,molarity NH4Cl, 0.1, 2.5 NaCl, 0.5, 0.25 Na2CO3, 0.75, 1.25 ***output.txt*** 13.37 7.31 99.36
Develop a python
You can use the three files here https://filebin.net/twyx8f7q8lqr1cno to aid in doing the program
-main.py includes the logic behind how output.txt is made based on the input.txt
-compound.py. includes the strructure of compound class
-periodictable.csv contains the information of the elements in the chemistry table of elements
Example:
***input.txt***
compound,liter,molarity
NH4Cl, 0.1, 2.5
NaCl, 0.5, 0.25
Na2CO3, 0.75, 1.25
***output.txt***
13.37
7.31
99.36
Step by step
Solved in 6 steps with 6 images