Question: Task 1 (ot 2) Antoine's Equation describes the relationship between vapor pressure and temperature for a pure substance. The equation is: log10(P)=A(C+T)B P= vapor pressure

 Task 1 (ot 2) Antoine's Equation describes the relationship between vaporpressure and temperature for a pure substance. The equation is: log10(P)=A(C+T)B P=vapor pressure (mmHg) T= temperature (C) A,B,C are constants that depend on

Task 1 (ot 2) Antoine's Equation describes the relationship between vapor pressure and temperature for a pure substance. The equation is: log10(P)=A(C+T)B P= vapor pressure (mmHg) T= temperature (C) A,B,C are constants that depend on the substance Download the file, Task1 .txt, from the Community Site. The first row of the text file has column headers. There are seven columns: Substance, A, B, C, Tmin (C),Tmax(C), and T(C). Develop a Python script, to do the following: - Read the data from the text file, Task1.txt - Save the Substances and the Temperatures, T, in lists - Create an empty list for pressure - For each row, if the temperature, T, is within range (Tmin TTmax ), calculate the vapor pressure, P(mmHg), and add it to the pressure list. - If the temperature, T, is out of range, add the value 9999 to the pressure list - indicating that the temperature is unacceptable. - Open a new text file, Task1_Results.txt for writing, and write three columns: Substance, Temperature, and Pressure to the file. The first row should be column headers. The pressure values should include two places behind the decimal point. Exnected Outnut (Partial): Note: it is not necessary for your columns to be nicely aligned. If you want to align columns, you can control the width of each column in your .write command as follows: {0:15} will make item 0 in the format list take up 15 spaces. Similarly, {2:10.2f} will make item 2 in the format list take up 10 spaces with two places behind the decimal point. Download the file, Task2.txt, from the Community Site. The text file has the daily temperatures at the CVG airport in January and July for the years 1950 through 2022 (73 years). Open the file and take a look at it. Year is in the first column, January Daily Temperatures are in the second column, and July Daily Temperatures are in the third column. There are no column headers. Note that the first 31 rows all have the same year, 1950, since there are 31 days in both January and July. The next 31 rows are for 1951, etc. Develop a Python script to do the following: - Read the data from the text file, Task2.txt - For each year (1950-2022), compute the average January temperature and the average July temperature. - Open a new text file, Task2_Results.txt for writing, and write three columns: Year, January Average, and July Average to the file. The first row should be column headers. The temperature averages should be formatted using one place behind the decimal point. Expected Output (Partial)

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!