The probability distribution shows the probability of each possible outcome, zero through 15. That is, if you were to ask a total of 15 people to sample both Coke and Pepsi, the probability distribution you have created will show you the chance that any specific number of people will guess correctly. Print out the distribution and then respond manually to the following questions:
1. What is the mean of this probability distribution? That is, what is the most likely outcome?
In: Statistics and Probability
a) Explain who wins and who loses if inflation is less than what the market expected. Why?
b) Which one is more economically important, ex-ante or ex-post real interest rates? Why?
In: Economics
What is the most troubling aspect (biggest weakness) of the electoral college system? What happens if no candidate wins a majority of the electoral votes? Why are small-population states more likely to support the electoral college system?
In: Economics
Rock, Paper, Scissors is a two-player game in which each player chooses one of three items. If both players choose the same item, the game is tied. Otherwise, the rules that determine the winner are: (a) Rock always beats Scissors (Rock crushes Scissors) (b) Scissors always beats Paper (Scissors cut Paper) (c) Paper always beats Rock (Paper covers Rock) Implement function rps() that takes the choice ('R', 'P', or 'S') of player 1 and the choice of player 2, and returns −1 if player 1 wins, 1 if player 2 wins, or 0 if there is a tie. 1
>>> rps('R', 'P') 1
>>> rps('R', 'S') -1
>>> rps('S', 'S') 0
In: Computer Science
Subjects: Write a Python program that allows users to play the popular rock-paper-scissor game against the computer multiple times. This program assesses your knowledge of decision structures, repetition structures, and functions.
Requirements:
1.Define a function named as play_game. This function receives two parameters representing the player’s and computer’s choices, and it returns an integer representing the game result from the player’s perspective. Specifically, it returns 1 if the player wins and 0 if the player does not win. Hint: you can reuse most of the code of team activity 2 as the body of this function.
2.Define the main function. In the main function, write code to let users play the game multiple rounds against the computer.
1)Option 1: use a for-loop to let the player play this game 3 times. For each round of the game, display a message indicating whether the player wins, loses, or draws. After the player has played 3 times, display a message indicating how many times the player has won.
2)Option 2: use a while loop to let the player play this game multiple times and the loop ends when the player wins 3 times. For each round of the game, display a message indicating whether the player wins, loses, or draws. After the player has won 3 times, display a message informing the player that the player has won 3 out of how many times played.
3)For either option, within each round of the game:
a. Let the computer randomly choose scissors, rock, and paper.
b.Prompt the player to make the player’s choice.
c.Call the play_game function to play the game once.
3. Call the main function and test your code.
In: Computer Science
A single die is rolled. Determine the probability of (show work)
a) rolling a 6 given the number is even
b) rolling an even given the number is a 6
c) rolling a 5 given that the number is odd
d) rolling a 2 or a 6 given that the number is even
e) rolling a 4 given that the number is odd
In: Statistics and Probability
In: Nursing
An 8.68 gram sample of a mixture of aluminum carbonate and calcium carbonate is placed in a vessel equipped with a massless, frictionless piston. The initial volume can be assumed to be zero. The sample is heated to 800oC. This results in complete decomposition to the metal oxides and carbon dioxide. After the reaction, the metal oxides are titrated to equivalence with 246.2 ml of 0.84 M HCl. If the atmospheric pressure is 752 mm Hg, what is the maximum value for the volume of the reaction vessel?
In: Chemistry
A quality mixture of water is contained in a piston cylinder system at a pressure of 3 bar. The initial volume of the system is 3 m3, and saturated liquid occupies 0.3 m3. Heat is added to the system and the volume is allowed to triple before a stop is reached. The final state of the system is at pressure of 30 bar. If the external pressure is 1 bar determine the followng: (a) The amount of heat added to the system; and (b) the amound of work performed by the system.
In: Mechanical Engineering
Which type of motor is hydraulically balanced so as
not to have buckling forces on the drive shaft.
(A) Gear
(B) Palettes
(C) Pistons
And Why?
The pressure compensator in which type of hydraulic
piston motor is used.
(A) Axial
(B) Inclined axis
(C) Alternative
And Why?
The pressure plate is used in the manufacture of the
motor of:
(A) Gear
(B) Palettes
(C) Pistons
And Why?
Thank you for your time, have a nice day :)
In: Mechanical Engineering