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:
. Heat transfer can be higher if themal efficiency is lower.
Explanation:
The heat transfer rate to the river water is calculated by this expression:


The actual heat transfer can be higher if the steam power plant reports an thermal efficiency lower than expected.
Answer and Explanation:
The coefficient of determination also called "goodness of fit" or R-squared(R²) is used in statistical measurements to understand the relationship between two variables such that changes in one variable affects the other. The level of relationship or the degree to which one affects the other is measured by 0 to 1 whereby 0 means no relationship at all and 1 means one totally affects the other while figures in between such 0.40 would mean one variable affects 40% of the other variable.
In making a decision as an engineer while using the coefficient of determination, one would try to understand the relationship between variables under consideration and make decisions based on figures obtained from calculating coefficient of determination. In other words when there is a 0 coefficient then there is no relationship between variables and an engineer would make his decisions with this in mind and vice versa.
Explanation:
The correct answers to the fill in the blanks would be;
1. Viscoelastic stress relaxation refers to scenarios for which the stress applied to a polymer must decay over time in order to maintain a constant strain. Otherwise, over time, the polymer chains will slip and slide past one another in response to a constant applied load and the strain will increase (in magnitude).
2. Viscoelastic creep refers to scenarios for which a polymer will permanently flow over time in response a constant applied stress.
The polymer whose properties have been mentioned above is commonly known as Kevlar.
It is mostly used in high-strength fabrics and its properties are because of several hydrogen bonds between polymer molecules.
Answer:
When a horse pull a cart the action is on?
A horse is harnessed to a cart. If the horse tries to pull the cart, the horse must exert a force on the cart. By Newton's third law the cart must then exert an equal and opposite force on the horse. Newton's second law tells us that acceleration is equal to the net force divided by the mass of the system.
Explanation: