Create a static method with the appropriate inputs and outputs. Call each of them in the main method.
Write a method called removeAllInstances() which takes in a List and item4 . The method then proceeds to remove each item in the list that matches the given item. For example, if the method is passed the List [1, 4, 5, 6, 5, 5, 2] and the Integer 5, the method removes all 5’s from the List. The List then becomes [1, 4, 6, 2]. It should return nothing, since the changes the List it was provided. 5
Please do this in Java.
In: Computer Science
Write a function in JAVASCRIPT that accepts two arguments (a string array and a character). The function will check each character of the strings in the array and removes the character, regardless of case. If the first letter of the string is removed the next letter must be capitalized. Your function would return the result as one string, where each element of array is separated by comma. E.G. function([“John”,”Hannah”,”Saham”], “h”); // returns ‘Jon,Anna,Saam
Use of any built in string function or any built in array function is not alllowed,
any help would be much appreciated.
In: Computer Science
A basket ball payer makes 90.4% of his free throws. In a game where he has 15 free throws, find the following.
a) Find the probability that he makes at least eleven free throws in that game. Write the statistical expression to represent this problem.
b) Find the mean number of free throws that he makes in that game.
c) Find the standard deviation of the number of free throws that he makes in that game.
In: Statistics and Probability
The average age of cars owned by residents of a small city is 6 years with a standard deviation of 2.2 years. A simple random sample of 400 cars is to be selected, and the sample mean age of these cars is to be computed. What is the probability that the average age of the 400 cars is more than 6.1 years? Show all main steps of your calculation. (No points will be given to an answer of only a final number provided even if the number is correct.)
In: Statistics and Probability
The number of pizzas consumed per month by university students is normally distributed with a mean of 10 and a standard deviation of 4. Use Excel to answer the following questions:
A. What proportion of students consume more than 11 pizzas per month?
B. What is the probability that in a random sample of size 11, a total of more than 99 pizzas are consumed? (Hint: What is the mean number of pizzas consumed by the sample of 11 students?)
In: Statistics and Probability
A survey of high school students revealed that the numbers of
soft drinks consumed per month was normally distributed with mean
25 and standard deviation 15. A sample of 36 students was selected.
What is the probability that the average number of soft drinks
consumed per month for the sample was between 26.2 and 30 soft
drinks?
Write only a number as your answer. Round to 4 decimal places (for
example 0.0048). Do not write as a percentage.
In: Statistics and Probability
A survey of high school students revealed that the numbers of soft drinks consumed per month was normally distributed with mean 25 and standard deviation 15. A sample of 36 students was selected. What is the probability that the average number of soft drinks consumed per month for the sample was between 28.5 and 30 soft drinks? Write only a number as your answer. Round to 4 decimal places (for example 0.0048). Do not write as a percentage.
In: Statistics and Probability
Suppose that goats have one gene that codes for color, where A is
brown and a is white. The goats also have another gene that codes
for height, where B is tall and b is short. If these two genes are
unlinked, what is the probability that a cross between Aa Bb × Aa
bb parents will produce two out of six offspring that are brown and
short? Enter your answer as a decimal, rather than as a
percentage.
waht is the Number ? Number:____.
In: Biology
A survey of high school students revealed that the numbers of soft drinks consumed per month was normally distributed with mean 25 and standard deviation 15. A sample of 36 students was selected. What is the probability that the average number of soft drinks consumed per month for the sample was between 28.1 and 30 soft drinks?
Write only a number as your answer. Round to 4 decimal places (for example 0.0048). Do not write as a percentage.
In: Statistics and Probability
A group of 9 friends includes 4 Americans, 2 Canadians, and 3 Italians. Three friends are to be selected at random for a trip. Let X denote the number of Americans and Y be the number of Canadians selected at random among the three friends selected for a trip.
1) Find the joint probability density function of the random variables X and Y and the marginal density functions.
2) Find Cov(2X-1, -Y+1).
In: Statistics and Probability