Question Four
An academic conference held this past January consistent of 250 participants including undergraduate students, masters students, PhD students, and, professors from business faculties, engineering faculties, and nursing faculties to discuss various ways of increasing the learning desires of students. The following table gives us the breakdown of participants by levels of education and faculties.
Business Engineering Nursing Totals
Undergraduate students 30 15 35 80
Masters students 40 38 12 90
PhD students 10 12 8 30
Professors 20 15 15 50
Totals 100 80 70 250
_____
In: Statistics and Probability
Create Java game on How to play Bulls and Cows between you (the host) and your computer (the player)
When completed, your program allows you to host the game (i.e., you create a secret word and score every guess) and it makes guesses until it wins.
In this player mode, your program should:
1. Display a total count of guesses with a new generated guess, which should be a 5-char string with '@' always included and the rest four characters drawn from any of the below 3 sets
characters:
{A, B, C, D, E}
{ 5, 6, 7, 8, 9 }
{ =, ?, %, @, $ }
2. Wait for a score (e.g., '2Bull, 3Cow') to be returned and entered by the host, who is you. It's suggested the score is entered on the same line of the the count and guess displayed in the above step. So, it would look like
Guess #3 8@XYZ 1Bull, 2Cow
Guess #4 5@WYZ 1Bull, 1Cow
Guess #5 @8=%Z 4Bull, 0Cow
Repeat the above two steps until the guess wins a score of '5Bull, 0Cow' as shown below.
Guess #3 8@XYZ 1Bull, 2Cow
Guess #4 5@WYZ 1Bull1Cow
Guess #5 @8=%Z 4Bull, 0Cow
Guess #6 @8=6Z 5Bull, 0Cow -- You won!!
Except for the very first guess, your program should implement a strategy or formula to generate a new guess based on all scores collected. A good strategy or formula should use as much as possible the information or hints provided by the scores to quickly approach the secret word. This would be the most challenging component to be implemented in the entire program.
Hint: one possible method is to generate a list of all possible secret words (using all scores returned) that could be the next guess, then to prune the list by keeping only those words that would give an equivalent score to how the last guess was scored. Then, the next guess can be any word from the pruned list. Either the guess correctly hits the secret word or run out of words to guess, which indicates a problem with the scoring or a problem with the list itself.
Please, keep in mind that the computer is the player, the one that has to guess the inputted String by the user.
In: Computer Science
Identify the Distribution
Select the Distribution that best fits the definition of the random variable X in each case.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
In: Statistics and Probability
This assignment is to give you practice using struts, arrays, and sorting. (Objective C++ and please have a screenshot of output)
In competitive diving, each diver makes dives of varying degrees of difficulty. Nine judges score each dive from 0 through 10 in steps of 0.5. The difficulty is a floating-point value between 1.0 and 3.0 that represents how complex the dive is to perform. The total score is obtained by discarding the lowest and highest of the judges’ scores, adding the remaining scores, and then multiplying that total by the degree of difficulty. Write a program to score each of the dives, using the following input and output specifications, and determine the winner of the competition.
Input:
Create the file m7dive.txt for input and the output must go to an output file named mp7output.txt.
The first line contains an integer for the number of divers in
the competition and subsequent lines contain:
Diver’s name (10 characters max, no blanks included), difficulty
(double), and judges’ ratings (nine doubles). There is one line of
data for each diver.
Example file:
| 2 | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Anne | 2.0 | 9.0 | 8.5 | 8.5 | 8.5 | 9.0 | 9.0 | 8.0 | 9.5 | 9.5 |
| Sarah | 1.6 | 7.5 | 7.0 | 8.0 | 8.0 | 8.0 | 8.5 | 8.5 | 8.5 | 9.0 |
Output:
The name and difficulty, followed by the scores sorted into increasing order, in tabular form with appropriate headings along with the earned total points for that diver.
Example for sample output of the input file data above
| NAME | DIFF | SORTED SCORES | POINTS | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Anne | 2.0 | 8.0 | 8.5 | 8.5 | 8.5 | 9.0 | 9.0 | 9.0 | 9.5 | 9.5 | 124.0 |
| Sarah | 1.6 | 7.0 | 7.5 | 8.0 | 8.0 | 8.0 | 8.5 | 8.5 | 8.5 | 9.0 | 91.2 |
The winner is Anne with the points of 124.0
At the end of the table, print out the name of the winner of the
competition (the person with the highest points) and his/her final
score.
Hint: You must use functions to modularize your program. Here is the full data of your input file mp7dive.txt, please send the output to an output file mp7output.txt.
The first line is 7 which is the number of divers in the file. The rest of the lines are as described above.
7 Anne 2.0 8.5 8.5 9.0 9.0 9.0 9.5 8.5 8.0 9.5 Sarah 1.6 7.5 8.5 8.0 8.0 7.0 9.0 8.5 8.5 8.0 Deborah 2.3 9.0 9.0 9.5 10.0 10.0 9.5 9.5 9.5 9.5 Kathryn 2.4 9.0 9.0 9.0 9.5 9.5 9.5 9.0 8.0 8.5 Jacquelin 2.7 9.0 9.0 9.5 9.5 9.0 8.5 8.5 8.5 9.5 Elizabeth 2.9 8.0 8.0 7.5 8.5 8.5 8.0 8.0 7.5 8.5 Tina 2.5 8.5 8.5 8.5 8.5 8.5 8.5 8.5 8.5 8.5
In: Computer Science
A stock will have a loss of 11.5% in a bad economy, a return of 11.3% in a normal economy, and a return of 25.2% in a hot economy. There is a 29% probability of a bad economy, a 32% probability of a normal economy and a 39% probability of a hot economy. What is the variance of the stock's returns? Enter as a decimal to 4 places.
In: Finance
Using RStudio
15. (9 pts) A particular basketball player has a season long free throw percentage of 55%. The player takes 7 free throws.
a) Explain why this is a binomial probability.
b) Create a table with the probability distribution.
c) Create the histogram for the probability distribution.
In: Statistics and Probability
A surgeon performs 5 surgeries in a week. Each surgery has
0.1
probability of developing complications. If the surgeries are
independent find:
a. The probability all 5 surgeries develop complications
b. The probability at least one of the surgeries develop
complications.
c. Exactly two of the surgeries develop complications
In: Statistics and Probability
Consider the probability that more than 43 out of 130 people have been in a car accident. Assume the probability that a given person has been in a car accident is 3%. Specify whether the normal curve can be used as an approximation to the binomial probability by verifying the necessary conditions.
Yes or No
In: Statistics and Probability
Let X be a continuous random variable with a probability density function fX (x) = 2xI (0,1) (x) and let it be the function´ Y (x) = e −x
a. Find the expression for the probability density function fY (y).
b. Find the domain of the probability density function fY (y).
In: Statistics and Probability
In: Statistics and Probability