ACTIVITY 8. APPLYING HYPOTHESIS TESTING
Solve the problem:
A recent survey says that Filipino children spend an average of 4 hr a day playing online games with a standard deviation of 30 minutes. A random sample of 9 children is taken from a normally distributed population of children who spend an average of 4 hr and 30 min playing online games. Using the 1% level of significance, would you conclude that the statement given in the survey is correct?
2. A manufacturer of isopropyl alcohol claims that their product has a mean content of 480 mL. and a standard deviation of 21.5 mL. Assume that the variable is normally distributed. a. If a sample is selected, what is the probability that the content will be less than 505 mL? b. If a sample of 6 isopropyl alcohol is selected, what is the probability that the mean of the sample will be less than 505?
N a country of zombies each city has a certain percentage of zombies. Cities are designated as 1....
n a country of zombies each city has a certain percentage of zombies. Cities are designated as
1. A city[i] is magical if city[i] and city[i+1] have no common divisor other than 1.
2. A city is good if the percentage of zombies in the city[i] is more than percentage of zombies in city[i+1]
Find a city that is perfect, where perfect means both good and magical,
if there are more than one perfect cities, output the left-most city index. Also, the minimum number of cities in a country is 2 and there will be at least one perfect city
Input Specification:
input1: An array representing the percentage of zombies in each city
input2: Number of cities in the country
Output Specification:
Return the favourable city index "i
2 dimentional arrays that determines the odd number among 12 inputs
Write a program to print the following,
Input
The first line contains a string representing a scrambled word.
The second line contains some space-separated strings representing words guessed by the player.
Output
The output should be a single integer of the final score.
Explanation
scramble word = "tacren"
guessed words = ["trance", "recant"]
Since "trance" and "recant" both have length 6 then you score 54 pts each.
So the output is 108.
Sample Input1
tacren
trance recant
Sample Output1
108
Sample Input2
rceast
cat create sat
Sample Output2
2
Write a program to print the following, Given a word W and pattern P, you need to check whether the pattern matches the given word.The word will only contain letters(can be Uppercase and Lowercase). The pattern can contain letters, ? and *.
? : Can be matched with any single letter.
* : Can be matched with any sequence of letters (including an empty sequence).If the pattern matches with the given word, print True else False.
Sample Input1
3
Hello *l?
Hell He?ll
Hell ?*
Sample Output1
True
False
True
Sample Input2
3
Hello Hell*
Hell He*ll
Hell hell*
Sample Output2
True
True
False
Show that simple harmonic motion y(t) = C1 cos ωt + C2 sin ωt can be written as:
a. y(t) = A sin(ωt + ϕ0)
b. y(t) = A cos(ωt + ϕ1)
If f(x)=(x+1)/x, x ≠ 0 and g(x)= 2x+3, find g°f(x)
Find the inverse function of (x+1)/x
Calculate the increase in length when 1000.0cm of steel wire of linear expansitivity 1.2×10-5°c is heated from 0°c to 50°c