Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Task 2 ( of 3 ) Antoine's Equation describes the relationship between vapor pressure and temperature for a pure substance. The equation is: l o

Task 2(of 3)
Antoine's Equation describes the relationship between vapor pressure and temperature for a pure
substance. The equation is:
log10(P)=A-B(C+T)
P= vapor pressure (mmHg)
T= temperature (C)
A,B,C are constants that depend on the substance
A, B, C are constants that depend on the substance
The table below lists the constants, A, B, and C, for three substances. It also lists the
temperature range (Tmin to Tmax) for which Antoine's equation is valid.
Create a Python script, HW-W2D2_Task2_UCusername, to do the following:
Prompt the user to specify one of the three substances listed (Methanol, Butane, or
Octane)
Validate the user's entry. If invalid, ask repeatedly for a valid substance.
Create a list of twenty temperatures evenly spaced from Tmin to Tmax given in the table
above. Note that this list of temperatures will be different for each substance.
Using Antoine's Equation, calculate and create a list of the vapor pressures
corresponding to each temperature in the list.
Output each temperature and its corresponding vapor pressure. Format your print
statement so that any floating point numbers are printed with 3 places behind the decimal.
Include appropriate units in your print statement. Note: You will likely want to use a
loop for this - don't just separately output the entire list of temperatures followed by the
entire list of pressures.
Sample Output (Partial):
Substance: Methanol
Temperature =-16.000(C); Pressure =10.128(mmHg)
Temperature =-10.368(C); Pressure =15.126(mmHg)
Temperature =-4.737(C); Pressure =22.157(mmHg)
Temperature =0.895(C); Pressure =31.879(mmHg)
Temperature =6.526(C); Pressure =45.108(mmHg)
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Concepts of Database Management

Authors: Philip J. Pratt, Joseph J. Adamski

7th edition

978-1111825911, 1111825912, 978-1133684374, 1133684378, 978-111182591

More Books

Students also viewed these Databases questions

Question

LOQ 3-1: What is the place of consciousness in psychologys history?

Answered: 1 week ago

Question

=+g. Does it deliver one, instantly understandable message?

Answered: 1 week ago

Question

=+e. Does it entertain, inform and/or engage the reader?

Answered: 1 week ago

Question

=+h. Do all of the related materials project one cohesive message?

Answered: 1 week ago