Question: Code Requirements Name your program file project 1 . py ( all lowercase ) . MAKE SURE THE FILE IS NAMED CORRECTLY. All code you
Code Requirements
Name your program file
projectpy all
lowercase MAKE SURE THE FILE IS NAMED
CORRECTLY. All code you write for this project
should be contained in this file.
Your program should include the following
functions:
main This function has no parameters and does
not return a value. This function is the main driver
of the program. It should first print the welcome
message. Then it should loop to process shapes
repeatedly until the user decides to quit. Then it
should print the final thank you message. Allow the
user to enter an uppercase or lowercase q to quit.
getshapechoice This function accepts no
parameters. It's purpose is to print the menu of
shape options as shown in the sample run and get
the user's choice. The function should return that
choice. No error detection should be done in this
function.
processshapechoice This function has one
string parameter representing the shape chosen by
the user. The function should use an if statement to
call the appropriate shape processing function. If
the parameter value is not valid through
then print the error message as shown in the
sample run. Note that this approach will handle
ANY invalid input dont convert the input to a
number This function does not return a value.
Code Requirements
Name your program file
projectpy all
lowercase MAKE SURE THE FILE IS NAMED
CORRECTLY. All code you write for this project
should be contained in this file.
Your program should include the following
functions:
main This function has no parameters and does
not return a value. This function is the main driver
of the program. It should first print the welcome
message. Then it should loop to process shapes
repeatedly until the user decides to quit. Then it
should print the final thank you message. Allow the
user to enter an uppercase or lowercase q to quit.
Inference tTest Practice Problems
Unless otherwise stated, use as the significance level. Assume all necessary conditions are met for hypothesis testing.
Problem
A group of swimmers is chosen to participate in an experiment to see if a new breathing style will improve their stamina. Each swimmer's
pulse recovery rate is measured affily a minute workout using the old breathing style. After a few weeks of practicing the new breathing style,
the pulse recovery rate is again measured after a minute workout using the new style. The swimmers will continue to use the new breathing
style if it is shown to reduce pulse recovery time.
a State the appropriate null and alternative hypotheses. Be sure to define all terms.
b What is the appropriate test statistic?
c State the distribution of the test statistic under the null assume the null hypothesis is true
d The test statistic for the situation is Sketch the distribution in part c and shade in area under the curve corresponding to the
value.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
