Questions
In the sport of diving, seven judges award a score between 0 and 10, where each...

In the sport of diving, seven judges award a score between 0 and 10, where each score may be a floating-value. The highest and lowest scores are thrown out and the remaining scores are added together. The sum is then multiplied by the degree of difficulty for that drive. The degree of difficulty ranges from 1.2 to 3.8 points. The total is then multiplied by 0.6 to determine the diver’s score.

Write a program that inputs a degree of difficulty and then input seven judges’ scores using a loop and outputs the overall score for that dive.

You are required to check whether a judge’s score is indeed between 0 and 10. You also have to check whether the difficulty is between 1.2 and 3.8. When the user enters a number that is not in the range, ask the user to enter it again.

Example: To ask the user to enter a score between 0 and 100

               do{

                    cout<<”Enter a number between 0 and 100”;

                   cin>>score;

              }while(score<0 || score>100);

Hint: You should use a loop to find total score, highest score, and lowest score. You then subtract total from highest and lowest. Multiply result by difficulty and 0.6 to get the final score. If the user enters difficulty as 2 and seven judges give score as 1, 2, 3, 4, 5, 6, and 7. Then the final score should be 24

                             

do it in C++

In: Computer Science

Suppose we are interested in bidding on a piece of land and we know one other...

Suppose we are interested in bidding on a piece of land and we know one other bidder is interested. The seller announced that the highest bid in excess of $10,000 will be accepted. Assume that the competitor's bid x is a random variable that is uniformly distributed between $10,000 and $15,300.

Suppose you bid $12,000. What is the probability that your bid will be accepted (to 2 decimals)?

Suppose you bid $14,000. What is the probability that your bid will be accepted (to 2 decimals)?

What amount should you bid to maximize the probability that you get the property?
$

Suppose that you know someone is willing to pay you $16,000 for the property. You are considering bidding the amount shown in part (c) but a friend suggests you bid $13,000. If your objective is to maximize the expected profit, what is your bid?
- Select your answer -Stay with your bid in part (c); it maximizes expected profitBid $13000 to maximize the expected profitItem 4

What is the expected profit for this bid (to 2 decimals)?
$

In: Statistics and Probability

Suppose we are interested in bidding on a piece of land and we know one other bidder is interested.

Suppose we are interested in bidding on a piece of land and we know one other bidder is interested. The seller announced that the highest bid in excess of $9,500 will be accepted. Assume that the competitor's bid x is a random variable that is uniformly distributed between $9,500 and $15,500.
a. Suppose you bid $12,000. What is the probability that your bid will be accepted (to 2 decimals)?
b. Suppose you bid $14,000. What is the probability that your bid will be accepted (to 2 decimals)?
c. What amount should you bid to maximize the probability that you get the property (in dollars)?
d. Suppose that you know someone is willing to pay you $16,000 for the property. You are considering bidding the amount shown in part (c) but a friend suggests you bid $12,750. If your objective is to maximize the expected profit, what is your bid?
SelectStay with your bid in part (c); it maximizes expected profitBid $12750 to maximize the expected profitItem 4
-What is the expected profit for this bid (in dollars)?

In: Statistics and Probability

Suppose we are interested in bidding on a piece of land and we know one other...

Suppose we are interested in bidding on a piece of land and we know one other bidder is interested. The seller announced that the highest bid in excess of $9,800 will be accepted. Assume that the competitor's bid x is a random variable that is uniformly distributed between $9,800 and $14,600.

a. Suppose you bid $12,000. What is the probability that your bid will be accepted (to 2 decimals)?

b. Suppose you bid $14,000. What is the probability that your bid will be accepted (to 2 decimals)?

c. What amount should you bid to maximize the probability that you get the property (in dollars)?

d. Suppose that you know someone is willing to pay you $16,000 for the property. You are considering bidding the amount shown in part (c) but a friend suggests you bid $12,900. If your objective is to maximize the expected profit, what is your bid?

(Stay with your bid in part C; it maximizes your profit) or (Bid$12900 to maximize profit)

e. What is the expected profit for this bid (in dollars)?

In: Statistics and Probability

The Rams are playing the Aggies in the last conference game of the season. The Rams...

  1. The Rams are playing the Aggies in the last conference game of the season. The Rams are trailing the Aggies 21 to 14 with 7 seconds left in the game, when they score a touchdown. Still trailing 21 to 20, the Rams can either go for two points and win or go for one point to send the game into overtime. The conference championship will be determined by the outcome of this game. If the Rams win, they will go to the Candy Ball with a payoff of $6.4 million; if they lose they go to the Crocodile Bowl with a payoff of $1.2 million. If the Rams go for two points there is 30% chance they will be successful and 70% chance they will fail and lose. If they go for one point there is a 0.97 probability of success and 0.03 probability of failure. If they tie they will play overtime, in which the Rams have a 40% of winning because of fatigue.

  1. Draw a decision tree for this problem.
  2. What should the Rams do to achieve the highest expected monetary value (EMV) and what is the EMV?
  3. What would the Rams’ probability of winning the game in overtime have to be to make the Rams indifferent between going for one point or two points?

In: Advanced Math

C++ Programming-Need getGrades function (I keep getting errors). Write a function called getGrades that does the...

C++ Programming-Need getGrades function (I keep getting errors).

  1. Write a function called getGrades that does the following:

  • Take an array of integers and an integer representing the size of the array as parameters.

  • Prompt the user to enter up to 20 grades.

  • Store the grades in the array.

  • Return the number of grades entered.

  1. Write another function called calcStats that does the following:

  • Take an array of integers and an integer representing the size of the array as normal parameters.

  • Use three reference variables to return the lowest, highest, and average grades.

  1. In your main function do the following:

  • Create an array of 20 elements.

  • Use the getGrades function to get the grades from the user.

  • Use the calcStats function to calculate the lowest, highest, and average grades.

  • Display the results.

  • Sample output:

  • Please enter up to 20 grades followed by a -1 when you are done.
    67
    87
    92
    78
    82
    -1
    Lowest grade: 67
    Highest grade: 92
    Average grade: 81.2

In: Computer Science

USA Today reported that approximately 25% of all state prison inmates released on parole become repeat...

USA Today reported that approximately 25% of all state prison inmates released on parole become repeat offenders while on parole. Suppose the parole board is examining five prisoners up for parole. Let x = number of prisoners out of five on parole who become repeat offenders. x 0 1 2 3 4 5 P(x) 0.210 0.376 0.225 0.168 0.020 0.001 (a) Find the probability that one or more of the five parolees will be repeat offenders. (Round your answer to three decimal places.) How does this number relate to the probability that none of the parolees will be repeat offenders? These probabilities are not related to each other. This is five times the probability of no repeat offenders. This is twice the probability of no repeat offenders. These probabilities are the same. This is the complement of the probability of no repeat offenders. (b) Find the probability that two or more of the five parolees will be repeat offenders. (Round your answer to three decimal places.) (c) Find the probability that four or more of the five parolees will be repeat offenders. (Round your answer to three decimal places.) (d) Compute μ, the expected number of repeat offenders out of five. (Round your answer to three decimal places.) μ = prisoners (e) Compute σ, the standard deviation of the number of repeat offenders out of five. (Round your answer to two decimal places.) σ = prisoners

In: Statistics and Probability

USA Today reported that approximately 25% of all state prison inmates released on parole become repeat...

USA Today reported that approximately 25% of all state prison inmates released on parole become repeat offenders while on parole. Suppose the parole board is examining five prisoners up for parole. Let x = number of prisoners out of five on parole who become repeat offenders.

x 0 1 2 3 4 5
P(x) 0.230 0.374 0.227 0.141 0.027 0.001

(a) Find the probability that one or more of the five parolees will be repeat offenders. (Round your answer to three decimal places.)


How does this number relate to the probability that none of the parolees will be repeat offenders?

These probabilities are not related to each other.These probabilities are the same.     This is twice the probability of no repeat offenders.This is five times the probability of no repeat offenders.This is the complement of the probability of no repeat offenders.


(b) Find the probability that two or more of the five parolees will be repeat offenders. (Round your answer to three decimal places.)


(c) Find the probability that four or more of the five parolees will be repeat offenders. (Round your answer to three decimal places.)


(d) Compute μ, the expected number of repeat offenders out of five. (Round your answer to three decimal places.)
μ =  prisoners

(e) Compute σ, the standard deviation of the number of repeat offenders out of five. (Round your answer to two decimal places.)
σ =  prisoners

In: Statistics and Probability

USA Today reported that approximately 25% of all state prison inmates released on parole become repeat...

USA Today reported that approximately 25% of all state prison inmates released on parole become repeat offenders while on parole. Suppose the parole board is examining five prisoners up for parole. Let x = number of prisoners out of five on parole who become repeat offenders. x 0 1 2 3 4 5 P(x) 0.203 0.388 0.217 0.150 0.041 0.001 (a) Find the probability that one or more of the five parolees will be repeat offenders. (Round your answer to three decimal places.) How does this number relate to the probability that none of the parolees will be repeat offenders? These probabilities are the same. These probabilities are not related to each other. This is five times the probability of no repeat offenders. This is the complement of the probability of no repeat offenders. This is twice the probability of no repeat offenders. (b) Find the probability that two or more of the five parolees will be repeat offenders. (Round your answer to three decimal places.) (c) Find the probability that four or more of the five parolees will be repeat offenders. (Round your answer to three decimal places.) (d) Compute μ, the expected number of repeat offenders out of five. (Round your answer to three decimal places.) μ = prisoners (e) Compute σ, the standard deviation of the number of repeat offenders out of five. (Round your answer to two decimal places.) σ = prisoners

In: Statistics and Probability

USA Today reported that approximately 25% of all state prison inmates released on parole become repeat...

USA Today reported that approximately 25% of all state prison inmates released on parole become repeat offenders while on parole. Suppose the parole board is examining five prisoners up for parole. Let x = number of prisoners out of five on parole who become repeat offenders.

x 0 1 2 3 4 5
P(x) 0.227 0.380 0.209 0.165 0.018 0.001

(a) Find the probability that one or more of the five parolees will be repeat offenders. (Round your answer to three decimal places.)


How does this number relate to the probability that none of the parolees will be repeat offenders?

This is twice the probability of no repeat offenders.These probabilities are the same.     This is the complement of the probability of no repeat offenders.These probabilities are not related to each other.This is five times the probability of no repeat offenders.


(b) Find the probability that two or more of the five parolees will be repeat offenders. (Round your answer to three decimal places.)


(c) Find the probability that four or more of the five parolees will be repeat offenders. (Round your answer to three decimal places.)


(d) Compute μ, the expected number of repeat offenders out of five. (Round your answer to three decimal places.)
μ =  prisoners

(e) Compute σ, the standard deviation of the number of repeat offenders out of five. (Round your answer to two decimal places.)
σ =  prisoner

In: Statistics and Probability