Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Task 1 ( of 3 ) Create a Python function named Stats that: Has one input argument: a list of numerical values of any length.
Task of
Create a Python function named Stats that:
Has one input argument: a list of numerical values of any length.
Calculates the average and standard deviation for the data in the list either using the
equations presented in class or by using an imported library with the appropriate
functions. You may assume that the data is from a sample.
Returns the average and standard deviation.
Test Value:
Stats should return an average and standard deviation of:
Task of
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 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, HWWDTaskUCusername, 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 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 ; Pressure
Temperature ; Pressure
Temperature ; Pressure
Temperature ; Pressure
Temperature ; Pressure
Task of
Develop a Python script, HWWDTaskUCusername, to do the following:
Create a d list of the Resistor Values:
Using a loop, for each row in compute the resistance if the two resistors are combined
in series and save the results in a list.
Using a loop, for each row in R compute the resistance if the two resistors are combined
in parallel and save the results in a list. Note: you can do this within the same loop you
used to calculate series resistances.
Output each pair of resistor values and their corresponding resistances. Format your print
statement so that each value is clearly labeled, and rounded to one place behind the
decimal point in the case of the parallel resistances you calculated.
Test Values:
; ; Rseries ; Rparallel
;; Rseries ; Rparallel
; ; Rseries ; Rparallel
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