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:
Enthalpy at outlet=284.44 KJ
Explanation:


We need to Find enthalpy of outlet.
Lets take the outlet mass m and outlet enthalpy h.
So from mass conservation

m=1+1.5+2 Kg/s
m=4.5 Kg/s
Now from energy conservation

By putting the values

So h=284.44 KJ
Answer:
$7,778.35
Explanation:
At year 3, the final payment of the remaining balance is equal to the present worth P of the last three payments.
First, calculate the uniform payments A:
A = 12000(A/P, 4%, 5)
= 12000(0.2246) = 2695.2 (from the calculator)
Then take the last three payments as its own cash flow.
To calculate the new P:
P = 2695.2 + 2695.2(P/A, 4%, 2) = 2695.2 + 2695.2(1.886) = 7778.35
Therefore, the final payment is $7,778.35
Advantages include low costs and minimal labor.Water stays in the root zone, and foliage stays dry. Drawbacks to surface irrigation include potential overwatering and wasteful runoff.