Questions
The following problem description applies also to the next two problems. A piston-cylinder device contains 2...

The following problem description applies also to the next two problems.

A piston-cylinder device contains 2 kg of a saturated liquid mixture at an initial state 1 with p1= 100 kPa and x1= 0.8. The water is heated at constant pressure until its final state 2 with volume V2 = 1.947V1.

Its initial volume, in m3/kg, is closer to:

2.990

3.836

2.711

4.625

2.345

1.736

2.156

1.294

Its final temperature, in oC, is closer to:

268

167

300

142

280

220

188

325

The amount of heat supplied to the steam during the expansion process, in kJ, is closer to:

1702

750

1992

2210

1623

1248

984

1110

In: Mechanical Engineering

A piston-cylinder assembly has a liquid-vapor mixture of R-134a, with initial total mass of 3 kg,...

A piston-cylinder assembly has a liquid-vapor mixture of R-134a, with initial total mass of 3 kg, total volume of 0.12 m3 and a temperature of 10°C. The refrigerant then undergoes two processes in series: constant-temperature process followed by a constant- pressure process. At the end of the constant-pressure process, the pressure is 140 kPa and the R-134a is all saturated liquid. The constant temperature process is adiabatic while the constant-pressure process is not. Neglect kinetic and potential effects.

a. Solve for the initial quality of the liquid-vapor mixture of R-134a.

b. Determine the work and heat transfer for the constant-temperature process, in kJ.

c. Determine the work and heat transfer for the constant-pressure process, in kJ.

In: Other

Write a MATLAB program to simulate the Stuck in the Mud game, The following link contains...

Write a MATLAB program to simulate the Stuck in the Mud game, The following link contains the detail game description: https://www.activityvillage.co.uk/stuck-in-the-mud , with additional features that can:

• Use five (5) 6-sided dice to automatically play the Stuck in the Mud game against a player.

• Greet the player when the game starts.

• Let the player to choose the number of rounds to play. Take care of the user input to ensure the program will not crash with inputs like 0, 1.2, -1, 999, and so on...

• The program should not play if the user enters a 0 or any negative value.

• The program should accurately play the number of rounds specified by the user. The player and the computer play in turns for each round.

• The program can always pick one side to start the game first, either the player side or the computer side. Randomly pick a side to start the rotation is optional.

• Print the current round number clearly in the command window.

• If the player side starts first, the program will automatically roll all five (5) dice for the player. If the player rolled any 2s or 5s, the player does not score any points for this throw. The player can only score on a roll which does not include the number 2 and 5. Any dice with a 2 or a 5 becomes stuck in the mud. If this throw does not contain any 2s or 5s, the score is incremented by the sum of the dice values. The player needs to set aside any 2s and 5s and throw the remaining dice. Again, if any 2s or 5s are rolled, the score will not be incremented for this throw. Throws without 2s and 5s are added to the previous total score. Continue in this way until all the dice are stuck.

• The dice rolled for the player, the stuck dice, and the scores during the process should clearly be printed in the command window.

• The program then automatically roll all five (5) dice for the computer. Follow the game rules until all five (5) dice are stuck.

• The dice rolled for the computer, the stuck dice, and the scores during the process should also be clearly printed in the command window. • Accurately track the total scores for the player and the computer.

• After all the rounds have been played, select a winner based on the highest total score. It is also possible that the game ends in a tie.

• Add voice to the game to report the details of the game for the player.

o Preloaded voices can be found here

https://drive.google.com/file/d/0B2evz1N1HPsoYlRvd1BLb0k5UHM/view?usp=sharing

o  The following websites can convert any text into voices with downloadable mp3 files.

§ www.fromtexttospeech.com

§ www.text2speech.org

o If you have a mic, you can also record your own voice using the Windows Sound Recorder.

o MATLAB can play any WMA, MP3, MPEG-4 AAC, WAV, FLAC audio files. [y,Fs] = audioread('fileName.mp3'); % read sound file sound(y,Fs); % play sound file o Additional sound effects are welcome.

• Add voice to greet the player.

• Add voice to ask the player to enter the number of rounds to play.

• Add voice to announce the current round number (i.e., round 1, round 2, and so on…).

• Add voice to announce the current turn (i.e. the player is rolling or the computer is rolling). • Add voice to announce the current roll number (i.e. roll 1, roll 2, and so on…).

• Add voice to announce each dice rolled.

• Add voice to announce the sum of the score for the current turn after each throw.

• Add voice to announce the number of dice stuck after each throw.

• After one side played, add voice to announce the current total score for the side. For example, 35 points can be announced as three-five.

• After all the rounds are played, add voice to announce the winner or tie.

Add pause as needed between sentences to ensure one sentence is finished before the next sentence starts.

Use at least one user-defined function in the program to reduce code repetition.

The finished program can look like the following example. Extra components are always welcome.

(Play a voice greeting.)

(Play a voice to request the user input.)

Enter the number of rounds to play: 2

ROUND 1!!!                    (Announce round #1.)

The player starts first:         (Announce the player’s turn.)

ROLL 1                       (Announce roll #1.)

    Rolling:            5   1   4   5   6 (Announce rolling 5-1-4-5-6.)

    Stuck in the mud:   5           5    

Game score: 0                 (Announce the score: 0)

Number of dice stuck: 2 (Announce the number of dice stuck: 2)

ROLL 2                       (Announce roll #2.)

    Rolling:                2   2       2 (Announce rolling 2-2-2.)

    Stuck in the mud:   5   2   2   5   2

Game score: 0                 (Announce the score: 0)

Number of dice stuck: 5 (Announce the number of dice stuck: 5)

The player scores:        0     (Announce the player score: 0)

The Player Total Scored: 0 (Announce the player total score: 0)

The computer goes next:          (Announce the computer’s turn.)

ROLL 1                       (Announce roll #1.)

    Rolling:            2   4   3   5   4 (Announce rolling 2-4-3-5-4.)

    Stuck in the mud:   2           5    

Game score: 0                 (Announce the score: 0)

Number of dice stuck: 2 (Announce the number of dice stuck: 2)

ROLL 2                       (Announce roll #2.)

    Rolling:                1   2       4 (Announce rolling 1-2-4.)

    Stuck in the mud:   2       2   5    

Game score: 0                 (Announce the score: 0)

Number of dice stuck: 3 (Announce the number of dice stuck: 3)

ROLL 3                       (Announce roll #3.)

    Rolling:                4           2 (Announce rolling 4-2.)

    Stuck in the mud:   2       2   5   2

Game score: 0                 (Announce the score: 0)

Number of dice stuck: 4 (Announce the number of dice stuck: 4)

ROLL 4                       (Announce roll #4.)

    Rolling:                5             (Announce rolling 5.)

    Stuck in the mud:   2   5   2   5   2

Game score: 0                 (Announce the score: 0)

Number of dice stuck: 5 (Announce the number of dice stuck: 5)

The computer scores:        0 (Announce the computer score: 0)

The Computer total scored: 0 (Announce the computer total score: 0)

ROUND 2!!!                    (Announce round #2.)

The player starts first:         (Announce the player’s turn.)

ROLL 1                       (Announce roll #1.)

    Rolling:            2   4   4   2   5 (Announce rolling 2-4-4-2-5.)

    Stuck in the mud:   2           2   5

Game score: 0                 (Announce the score: 0)

Number of dice stuck: 3 (Announce the number of dice stuck: 3)

ROLL 2                       (Announce roll #2.)

    Rolling:                2   2         (Announce rolling 2-2.)

    Stuck in the mud:   2   2   2   2   5

Game score: 0                 (Announce the score: 0)

Number of dice stuck: 5 (Announce the number of dice stuck: 5)

The player scores:        0     (Announce the player score: 0)

The Player Total Scored: 0    (Announce the computer score: 0)

The computer goes next:          (Announce the computer’s turn.)

ROLL 1                       (Announce roll #1.)

    Rolling:            4   4   1   1   1 (Announce rolling 4-4-1-1-1.)

    Stuck in the mud:                    

Game score: 11                (Announce the score: 1-1)

Number of dice stuck: 0 (Announce the number of dice stuck: 0)

ROLL 2                       (Announce roll #2.)

    Rolling:            1   4   5   6   4 (Announce rolling 1-4-5-6-4.)

    Stuck in the mud:           5        

Game score: 11                (Announce the score: 1-1)

Number of dice stuck: 1 (Announce the number of dice stuck: 1)

ROLL 3                       (Announce roll #3.)

    Rolling:            6   5       1   1 (Announce rolling 6-5-1-1.)

    Stuck in the mud:       5   5        

Game score: 11                (Announce the score: 1-1)

Number of dice stuck: 2 (Announce the number of dice stuck: 2)

ROLL 4                       (Announce roll #4.)

    Rolling:            2           5   1 (Announce rolling 2-5-1.)

    Stuck in the mud:   2   5   5   5    

Game score: 11                (Announce the score: 1-1)

Number of dice stuck: 4 (Announce the number of dice stuck: 4)

ROLL 5                       (Announce roll #5.)

    Rolling:                            5 (Announce rolling 5.)     Stuck in the mud:   2   5   5   5   5

Game score: 11                (Announce the score: 1-1)

Number of dice stuck: 5 (Announce the number of dice stuck: 5)

The computer scores:        11 (Announce the computer score: 1-1)

The Computer total scored: 11 (Announce the computer total score: 1-1)

The computer wins!              (Announce the computer wins.)

>>

The program should end when the player wants to play 0 round.

(Play a voice greeting.)

(Play a voice to request the user input.)

Enter the number of rounds to play: 0

The game ends with a tie     (Announce the game ends in a tie.)

The program should be able to handle a negative input.

(Play a voice greeting.)

(Play a voice to request the user input.)

Enter the number of rounds to play: -1

The game ends with a tie (Announce the game ends with a tie.)

>>

The program should be able to handle a floating point input without crashing.

(The following example takes the floor value of 1.2 and only runs 1 round. )

(Play a voice greeting.)

(Play a voice to request the user input.)

Enter the number of rounds to play: 1.2

ROUND 1!!!                    (Announce round #1.)

The player starts first:         (Announce the player’s turn.)

ROLL 1                       (Announce roll #1.)

    Rolling:            3   6   2   2   6 (Announce rolling 3-6-2-2-6.)

    Stuck in the mud:           2   2       Game score: 0      (Announce the score: 0)

Number of dice stuck: 2 (Announce the number of dice stuck: 0)

ROLL 2                       (Announce roll #2.)

    Rolling:            4   4           4 (Announce rolling 4-4-4.)

    Stuck in the mud:           2   2    

Game score: 12                (Announce the score: 1-2)

Number of dice stuck: 2 (Announce the number of dice stuck: 2)

ROLL 3                       (Announce roll #3.)

    Rolling:            3   1           5 (Announce rolling 3-1-5.)

    Stuck in the mud:           2   2   5

Game score: 12                (Announce the score: 1-2)

Number of dice stuck: 3 (Announce the number of dice stuck: 3)

ROLL 4                       (Announce roll #4.)

    Rolling:            6   5             (Announce rolling 6-5.)

    Stuck in the mud:       5   2   2   5

Game score: 12                (Announce the score: 1-2)

Number of dice stuck: 4 (Announce the number of dice stuck: 4)

ROLL 5                       (Announce roll #5.)

    Rolling:            1                 (Announce rolling 1.)

    Stuck in the mud:       5   2   2   5

Game score: 13                (Announce the score: 1-3)

Number of dice stuck: 4 (Announce the number of dice stuck: 4)

ROLL 6                       (Announce roll #6.)

    Rolling:            1                 (Announce rolling 1.)

    Stuck in the mud:       5   2   2   5

Game score: 14                (Announce the score: 1-4)

Number of dice stuck: 4 (Announce the number of dice stuck: 4)

ROLL 7                      (Announce roll #7)

    Rolling:            5                 (Announce rolling 5.)

    Stuck in the mud:   5   5   2   2   5

Game score: 14                (Announce the score: 1-4)

Number of dice stuck: 5 (Announce the number of dice stuck: 5)

The player scores:       14    (Announce the player score: 1-4)

The Player Total Scored: 14 (Announce the player total score: 1-4)

The computer goes next:          (Announce the computer’s turn.)

ROLL 1                       (Announce roll #1.)

    Rolling:            6   5   6   4   2 (Announce rolling 6-5-6-4-2.)

    Stuck in the mud:       5           2

Game score: 0                 (Announce the score: 0)

Number of dice stuck: 2 (Announce the number of dice stuck: 2)

ROLL 2                       (Announce roll #2.)

    Rolling:            2       4   5     (Announce rolling 2-4-5.)

    Stuck in the mud:   2   5       5   2

Game score: 0                 (Announce the score: 0)

Number of dice stuck: 4 (Announce the number of dice stuck: 4)

ROLL 3                       (Announce roll #3.)

    Rolling:                    4         (Announce rolling 4.

    Stuck in the mud:   2   5       5   2

Game score: 4                 (Announce the score: 4)

Number of dice stuck: 4 (Announce the number of dice stuck: 4)

ROLL 4                       (Announce roll #4.)

    Rolling:                    2         (Announce rolling 2.)

    Stuck in the mud:   2   5   2   5   2

Game score: 4                 (Announce the score: 4)

Number of dice stuck: 5 (Announce the number of dice stuck: 5)

The computer scores:        4 (Announce the computer score: 4)

The Computer total scored: 4 (Announce the computer total score: 4)

The player wins!               (Announce the player wins.)

In: Computer Science

For this problem, you will write a program in which the computer plays a dice game...

For this problem, you will write a program in which the computer plays a dice game called Craps. You might need to explore some Python documentation on random() for this homework assignment.

PROVIDE A GRAPHICAL FLOWCHART as part of your submission for this solution

Rules:

The player rolls two six-sided dice. After rolling, the sum of what the dice show is calculated. If the sum is 7 or 11 on the first roll, the player wins. If the sum is 2, 3, or 12 on the first roll (called “craps”), you lose (the “house” wins). If the sum is 4, 5, 6, 8, 9, or 10 on the first roll, that sum becomes your “point”. To win, you must continue rolling the dice until you “make your point” (i.e., roll that same point value again). You lose by rolling a 7 before making your point.

Requirements:

When your program starts, give the player the option to “back out” of playing.

After every roll, ask the player if they want to continue. If they quit, exit the program gracefully with a message indicating they quit

Print appropriate messages (and end the game properly) when the player wins or loses, based on the rules provided above.

AMAZING points: These final two points may be awarded if you’ve completed the rest of the assignment perfectly and dazzle us with...

  • Have at least 3 random witty/engaging messages that print automatically when the player is trying to get their “point”. Consider this the “house manager” trying to distract the player from winning.
    Example:

You rolled 2 + 3 = 5
Your Point is 5
Do you want to continue or quit (Q to quit) c
You rolled 1 + 1 = 2

House Manager: “Don’t quit your day job.”

Do you want to continue or quit (Q to quit) c
You rolled 4 + 2 = 6

House Manager: “Are you nervous? You look like you're sweating or just took a shower!”

Do you want to continue or quit (Q to quit) c
You rolled 2 + 3 = 5

You win!

For this problem, you will write a program in which the computer plays a dice game called Craps. You might need to explore some Python documentation on random() for this homework assignment.

PROVIDE A GRAPHICAL FLOWCHART as part of your submission for this solution

Rules:

The player rolls two six-sided dice. After rolling, the sum of what the dice show is calculated. If the sum is 7 or 11 on the first roll, the player wins. If the sum is 2, 3, or 12 on the first roll (called “craps”), you lose (the “house” wins). If the sum is 4, 5, 6, 8, 9, or 10 on the first roll, that sum becomes your “point”. To win, you must continue rolling the dice until you “make your point” (i.e., roll that same point value again). You lose by rolling a 7 before making your point.

Requirements:

When your program starts, give the player the option to “back out” of playing.

After every roll, ask the player if they want to continue. If they quit, exit the program gracefully with a message indicating they quit

Print appropriate messages (and end the game properly) when the player wins or loses, based on the rules provided above.

AMAZING points: These final two points may be awarded if you’ve completed the rest of the assignment perfectly and dazzle us with...

  • Have at least 3 random witty/engaging messages that print automatically when the player is trying to get their “point”. Consider this the “house manager” trying to distract the player from winning.
    Example:

You rolled 2 + 3 = 5
Your Point is 5
Do you want to continue or quit (Q to quit) c
You rolled 1 + 1 = 2

House Manager: “Don’t quit your day job.”

Do you want to continue or quit (Q to quit) c
You rolled 4 + 2 = 6

House Manager: “Are you nervous? You look like you're sweating or just took a shower!”

Do you want to continue or quit (Q to quit) c
You rolled 2 + 3 = 5

You win!

For this problem, you will write a program in which the computer plays a dice game called Craps. You might need to explore some Python documentation on random() for this homework assignment.

PROVIDE A GRAPHICAL FLOWCHART as part of your submission for this solution

Rules:

The player rolls two six-sided dice. After rolling, the sum of what the dice show is calculated. If the sum is 7 or 11 on the first roll, the player wins. If the sum is 2, 3, or 12 on the first roll (called “craps”), you lose (the “house” wins). If the sum is 4, 5, 6, 8, 9, or 10 on the first roll, that sum becomes your “point”. To win, you must continue rolling the dice until you “make your point” (i.e., roll that same point value again). You lose by rolling a 7 before making your point.

Requirements:

When your program starts, give the player the option to “back out” of playing.

After every roll, ask the player if they want to continue. If they quit, exit the program gracefully with a message indicating they quit

Print appropriate messages (and end the game properly) when the player wins or loses, based on the rules provided above.

AMAZING points: These final two points may be awarded if you’ve completed the rest of the assignment perfectly and dazzle us with...

  • Have at least 3 random witty/engaging messages that print automatically when the player is trying to get their “point”. Consider this the “house manager” trying to distract the player from winning.
    Example:

You rolled 2 + 3 = 5
Your Point is 5
Do you want to continue or quit (Q to quit) c
You rolled 1 + 1 = 2

House Manager: “Don’t quit your day job.”

Do you want to continue or quit (Q to quit) c
You rolled 4 + 2 = 6

House Manager: “Are you nervous? You look like you're sweating or just took a shower!”

Do you want to continue or quit (Q to quit) c
You rolled 2 + 3 = 5

You win!

In: Computer Science

The University of Cincinnati Center for Business Analytics is an outreach center that collaborates with industry...

The University of Cincinnati Center for Business Analytics is an outreach center that collaborates with industry partners on applied research and continuing education in business analytics. One of the programs offered by the center is a quarterly Business Intelligence Symposium. Each symposium features three speakers on the real-world use of analytics. Each corporate member of the center (there are currently 10) receives seven free seats to each symposium. Nonmembers wishing to attend must pay $75 per person. Each attendee receives breakfast, lunch, and free parking. The following are the costs incurred for putting on this event:

Rental cost for the auditorium: $150
Registration Processing: $8.50 per person
Speaker Costs: 3@$800 = $2,400
Continental Breakfast: $4.00 per person
Lunch: $7.00 per person
Parking: $5.00 per person
(a) The Center for Business Analytics is considering a refund policy for no-shows. No refund would be given for members who do not attend, but nonmembers who do not attend will be refunded 50% of the price. Build a spreadsheet model that calculates a profit or loss based on the number of nonmember registrants. Account for the fact that, historically, 25% of members who registered do not show and 10% of registered nonmembers do not attend. The center pays the caterer for breakfast and lunch based on the number of registrants (not the number of attendees). However, the center only pays for parking for those who attend. What is the profit if each corporate member registers their full allotment of tickets and 127 nonmembers register? If required, round your answers to two decimal places.
$
(b) Use a two-way data table to show how profit changes as a function of number of registered nonmembers and the no-show percentage of nonmembers. Vary number of nonmember registrants from 80 to 160 in increments of 5 and the percentage of nonmember no-shows from 10% to 30% in increments of 2%. In which interval of nonmember registrants does breakeven occur if the percentage of nonmember no-shows is 22%?
Breakeven appears in the interval of   to   registered nonmembers.
(c) Consider three scenarios:
Base Case Worst Case Best Case
% of Members Who Do Not Show 25 % 50 % 20 %
% of Nonmembers Who Do Not Show 10 % 30 % 4 %
Number of Nonmember Registrants 137 105 185
All other inputs are the same as in part (a). Use Scenario Manager to generate a summary report that gives the profit for each of these three scenarios. What is the highest profit? What is the lowest profit? If required, round your answers to two decimal places. For subtractive or negative numbers use a minus sign.
The highest profit is $ .
The lowest profit is $ .

In: Accounting

The American Housing Survey reported the following data on the number of times that owner-occupied and...

The American Housing Survey reported the following data on the number of times that owner-occupied and renter-occupied units had a water supply stoppage lasting 6 or more hours in the past 3 months.

Number of Houses (1000s)
Number of Times Owner Occupied Renter Occupied
0 549 23
1 5,012 542
2 6,100 3,734
3 2,544 8,690
4 times or more 558 3,783

Do not round intermediate calculations. Round your answers to two decimal places.

a. Define a random variable x = number of times that owner-occupied units had a water supply stoppage lasting 6 or more hours in the past 3 months and develop a probability distribution for the random variable. (Let x = 4 represent 4 or more times.)

x f(x)
0
1
2
3
4
Total

b. Compute the expected value and variance for x.

Total
E(x)
Var(x)

c. Define a random variable y = number of times that renter-occupied units had a water supply stoppage lasting 6 or more hours in the past 3 months and develop a probability distribution for the random variable. (Let y = 4 represent 4 or more times.)

y f(y)
0
1
2
3
4
Total

d. Compute the expected value and variance for y.

Total
E(y)
Var(y)

In: Statistics and Probability

1. A insurance office keeps track of the number of car insurance claims filed each day....

1. A insurance office keeps track of the number of car insurance claims filed each day. Based on the data collected, it determines that the following probability distribution applies:
Number of Claims Probability 0 .05 1 .15 2 .25 3 .45 4 .10 a. What is the expected number of new claims filed each day?
b. If a claim pays out on average $5000, what is the average cost per day?
c. If the ofice is open 250 days a year, what is the total cost of claims in a year?
d. If there are 10,000 policy holders, what does each policy holder need to pay each year for the compayn to break even?

2.  Assume that a set of test scores in an Introduction to Finance class is normally distributed with a mean of 75 and a standard deviation of 8. Use the Standard Normal Tables to find the percentage of scores less than 86.
Use the Standard Normal Tables to find the percentage of scores between 64 and 86.
What score would be needed to be in the top 10%?

In: Statistics and Probability

For this? problem, use the fact that the expected value of an event is a probability...

For this? problem, use the fact that the expected value of an event is a probability weighted? average, the sum of each probable outcome multiplied by the probability of the event occurring. You own a house worth ?$800, 000 that is located on a river. If the river floods? moderately, the house will be completely destroyed. This happens about once every 20 years. If you build a? seawall, the river would have to flood heavily to destroy your? house, which only happens about once every 200 years. What would be the annual premium without a seawall for an insurance policy that offers full? insurance? Without a? seawall, the annual premium is ?$ 40000. ?(Round your response to the nearest whole? number.) What would be the annual premium with a seawall for an insurance policy that offers full? insurance? With a? seawall, the annual premium is ?$ 4000. ?(Round your response to the nearest whole? number.)

***For a policy that only pays 75?% of the home? value, what are your expected costs without a? seawall? Without a? seawall, the expected cost is ?$ nothing. ?(Round your response to the nearest whole? number.)

In: Economics

Innocent until proven guilty? In Japanese criminal trials, about 95% of the defendants are found guilty....

Innocent until proven guilty? In Japanese criminal trials, about 95% of the defendants are found guilty. In the United States, about 60% of the defendants are found guilty in criminal trials. (Source: The Book of Risks, by Larry Laudan, John Wiley and Sons) Suppose you are a news reporter following four criminal trials. (For each answer, enter a number.)

(a)

If the trials were in Japan, what is the probability that all the defendants would be found guilty? (Round your answer to three decimal places.)


What is this probability if the trials were in the United States? (Round your answer to three decimal places.)

(b)

Of the four trials, what is the expected number of guilty verdicts in Japan? (Round your answer to two decimal places.)
verdicts

What is the expected number in the United Sates? (Round your answer to two decimal places.)
verdicts

What is the standard deviation in Japan? (Round your answer to two decimal places.)
verdicts

What is the standard deviation in the United States? (Round your answer to two decimal places.)
verdicts

In: Statistics and Probability

A drug manufacturer markets a brand of pain reliever that it claims to be 96​% effective...

A drug manufacturer markets a brand of pain reliever that it claims to be 96​% effective in relieving headache pain. A consumer group decides to select a sample of 21 people at random who suffer from headaches and give them the medicine. They will then count the number of people who indicate to have experienced relief from their pain. Assume that the effect of the drug on each person is independent of the effect on all other people receiving the drug.

​a) If p​ = 0.96​, as the manufacturer​ claims, what is the expected number of people in the sample who experience pain​ relief? (Answer is 20.2)

​b) If the number of people in the sample who experience pain relief is 19 or​ fewer, the consumer group will publish a report questioning the claim that the drug is 96​% effective. ​ Otherwise, no results will be published. If p​ = 0.96 as​ claimed, what is the probability that the sample of 21 people will have 19 or fewer who experience pain​ relief? ​

c) Suppose the​ manufacturer's claim is not​ true, and in fact p​ = 0.91. What is the probability​ that, based on the results in the​ sample, the consumer group will publish a report questioning the claim made by the​ manufacturer?

In: Statistics and Probability