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: c) 450 kPa
Explanation:
Boyle's Law: This law states that pressure is inversely proportional to the volume of the gas at constant temperature and number of moles.
(At constant temperature and number of moles)
where,
= initial pressure of gas = 150 kPa
= final pressure of gas = ?
= initial volume of gas = v L
= final volume of gas =
Therefore, the new pressure of the gas will be 450 kPa.
Answer:
401.3 kg/s
Explanation:
The power plant has an efficiency of 36%. This means 64% of the heat form the source (q1) will become waste heat. Of the waste heat, 85% will be taken away by water (qw).
qw = 0.85 * q2
q2 = 0.64 * q1
p = 0.36 * q1
q1 = p /0.36
q2 = 0.64/0.36 * p
qw = 0.85 *0.64/0.36 * p
qw = 0.85 *0.64/0.36 * 600 = 907 MW
In evaporation water becomes vapor absorbing heat without going to the boiling point (similar to how sweating takes heat from the human body)
The latent heat for the vaporization of water is:
SLH = 2.26 MJ/kg
So, to dissipate 907 MW
G = qw * SLH = 907 / 2.26 = 401.3 kg/s
The French and Dutch colonized arenas so small compared to the Spanish colonized areas For farming
It is accurate to say that site engineering does not require particular consideration for soils with low percolation rates.
<h3>What are percolation rates?</h3>
- The rate at which water percolates through the soil is a measure of its ability to absorb and treat effluent, or wastewater that has undergone preliminary treatment in a septic tank.
- Minutes per inch are used to measure percolation rate (mpi).
- The process of a liquid gently moving through a filter is called percolation. This is how coffee is typically brewed.
- The Latin verb percolare, which meaning "to strain through," is the source of the word "percolation." When liquid is strained through a filter, such as when making coffee, percolation occurs.
To learn more about percolation rates, refer to:
brainly.com/question/28170860
#SPJ4