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.
Answer:
hello below is missing piece of the complete question
minimum size = 0.3 cm
answer : 0.247 N/mm2
Explanation:
Given data :
section span : 10.9 and 13.4 cm
minimum load applied evenly to the top of span : 13 N
maximum load for each member ; 4.5 N
lets take each member to be 4.2 cm
Determine the max value of P before truss fails
Taking average value of section span ≈ 12 cm
Given minimum load distributed evenly on top of section span = 13 N
we will calculate the value of by applying this formula
=
= 1.56 * 10^-5
next we will consider section ; 4.2 cm * 0.3 cm
hence Z (section modulus ) = BD^2 / 6
= ( 0.042 * 0.003^2 ) / 6 = 6.3*10^-8
Finally the max value of P( stress ) before the truss fails
= M/Z = ( 1.56 * 10^-5 ) / ( 6.3*10^-8 )
= 0.247 N/mm2
Intranet is a network that is internal and use internet technologies. It makes information of any company accessible to its employees and hence facilitates collaboration. Same methods can be used to get information, use resources, and update the data as that of the internet.
Hopefully this helped.