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

EBK JAVA PROGRAMMING
9th Edition
ISBN:9781337671385
Author:FARRELL
Publisher:FARRELL
Chapter13: File Input And Output
Section: Chapter Questions
Problem 6PE
icon
Related questions
Topic Video
Question

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

Expert Solution
steps

Step by step

Solved in 6 steps with 6 images

Blurred answer
Knowledge Booster
Instruction Format
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT