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:
1st part: Section W18X76 is adequate
2nd part: Section W21X62 is adequate
Explanation:
See the attached file for the calculation
Answer:
β =
= 0.7071 ≈ 1 ( damping condition )
closed-form expression for the response is attached below
Explanation:
Given : x + 2x + 2x = 0 for Xo = 0 mm and Vo = 1 mm/s
computing a solution :
M = 1,
c = 2,
k = 2,
Wn =
=
next we determine the damping condition using the damping formula
β =
= 0.7071 ≈ 1
from the condition above it can be said that the damping condition indicates underdamping
attached below is the closed form expression for the response
To get rockets into orbit, they need much more thrust than the amount that will get them up to the required altitude. They also need sufficient thrust to allow them to travel with very high orbital speed. ... If speed is less than this, an object will fall back to the Earth