Answer:
for i in range(0,10):
if SimonPattern[i] == UserPattern[i]:
score = score + 1
i = i + 1
else:
break
if i == 9:
score = score + 1
print("Total Score: {}".format(score))
Explanation:
This for loop was made using Python. Full code attached.
- For loop requires a range of numbers to define the end points. For this Simon Says game, we are talking about 10 characters, so that must be the range for the for loop: from 0 to 10.
- Conditional if tests if Simon pattern matches User's one characheter by one and add point for each match.
- Break statement is ready to escape the for loop at first mismatch.
- As we are starting from index 0, if the users matched all the characters correctly, then we need to add 1, otherwise the maximun score would be 9 and it should be 10.
I would go with C but i am not 100 percent on that
Answer:
Below see details
Explanation:
A) It is attached. Please see the picture
B) First to calculate the overall mean,
μ=65∗25/75+80∗25/75+95∗25/75
μ=65∗25/75+80∗25/75+95∗25/75 = 80
Next to calculate E(MSTR) = σ2+(1/r−1) ∑ni(μi−μ)^2 = 5634
And E(MSE) = σ^2= 9
C) Yes, it is substantially large than E(MSE) in this case.
D) If we sampled 25 employees from each group, we are likely to get a F statistics to indicate differences of job satisfactions among three types of length of service of employees.
Answer:
The results of a percolation test will determine if there is suitable drainage and the size of the drain field that will be required for a septic system.
Answer:
μ=0.329, 2.671 turns.
Explanation:
(a) ln(T2/T1)=μβ β=angle of contact in radians
take T2 as greater tension value and T1 smaller, otherwise the friction would be opposite.
T2=5000 lb and T1=80 lb
we have two full turns which makes total angle of contact=4π radians
μ=ln(T2/T1)/β=(ln(5000/80))/4π
μ=0.329
(b) using the same relation as above we will now compute the angle of contact.
take greater tension as T2 and smaller as T1.
T2=20000 lb T1=80 lb μ=0.329
β=ln(20000/80)/0.329=16.7825 radians
divide the angle of contact by 2π to obtain number of turns.
16.7825/2π =2.671 turns