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:
True, <em>Regeneration is the only process where increases the efficiency of a Brayton cycle when working fluid leaving the turbine is hotter than working fluid leaving the compressor</em>.
Option: A
<u>Explanation:
</u>
To increase the efficiency of brayton cycle there are three ways which includes inter-cooling, reheating and regeneration. <em>Regeneration</em> technique <em>is used when a turbine exhaust fluids have higher temperature than the working fluid leaving the compressor of the turbine. </em>
<em>Thermal efficiency</em> of a turbine is increased as <em>the exhaust fluid having higher temperatures are used in heat exchanger where the fluids from the compressor enters and increases the temperature of the fluids leaving the compressor.
</em>
Answer:
hshdhriwjajaldh skshdjdywuusg
Explanation:
null
Answer:
The sentence excerpted from the e-mail uses passive voice.
Given the purpose of your message, this voice is appropriate.
Explanation:
Because the objective is to remedy the situation a passive voice is great because it emphasizes the action and the object instead of the subject.
We want to emphasize the document and the incorrect information, not our colleague.