Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Antoine's Equation describes the relationship between vapor pressure and temperature for a pure substance. The equation is: l o g 1 0 ( P )
Antoine's Equation describes the relationship between vapor pressure and temperature for a pure
substance. The equation is:
vapor pressure
temperature
are constants that depend
are constants that depend on the substance
Download the file, Tasktxt from the Canvas Site. The first row of the text file has column
headers. There are seven columns: Substance, A B C Tmin Tmax and
Develop a Python script, HWWDTaskUCusername, to do the following:
Read the data from the text file, Tasktxt
Save the Substance data and the Temperature T data, in their own lists
Create an empty list for pressure
For each row of data, if the temperature is within the range TminTmax
calculate the vapor pressure in units of and add it to the pressure list you
created.
If the temperature, is out of range, add the value to the pressure list indicating
that the temperature is unacceptable values that are outside the range of possibility, often
that contain all s are used to indicate an error has occurred
Open a new text file, TaskResults.txt for writing, and write three columns of data:
Substance, Temperature, and Pressure, to the file. The first row should contain the
column headers. The pressure values should be precise to two places behind the decimal
point.
Expected Output Partial:
Second photo is the file taskresults.txt for writing
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started