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:
The entity relationship (ER) data model has existed for over 35 years. It is well suited to data modelling for use with databases because it is fairly abstract and is easy to discuss and explain. ER models are readily translated to relations. ER models, also called an ER schema, are represented by ER diagrams.
Answer:
Technician B
Explanation:
The brakes can lockup due to the following reasons
1) Overheating break systems
2) Use of wrong brake fluid
3) Broken or damaged drum brake backing plates, rotors, or calipers
4) A defective ABS part, or a defective parking mechanism or proportioning valve
5) Brake wheel cylinders, worn off
6) Misaligned power brake booster component
Hi! bridges could have been collapse due to an error made by the engineers during construction.
The KVA rating of the step down transformer at the given power factor would be 62.5 kVA.
<h3>
What is power factor of a transformer?</h3>
Power factor (PF) is the ratio of working power, measured in kilowatts (kW), to apparent power, measured in kilovolt amperes (kVA).
PF = working power / apparent power
PF = kW/kVA
kVA = kW/PF
kVA = 50 kW/0.8
kVA = 62.5 kVA
Thus, the KVA rating of the step down transformer at the given power factor would be 62.5 kVA.
Learn more about power factor here: brainly.com/question/7956945
#SPJ1