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 answer is "
".
Explanation:
Please find the correct question in the attachment file.
using formula:



Answer:
The rate of heat generation in the wire per unit volume is 5.79×10^7 Btu/hrft^3
Heat flux is 9.67×10^7 Btu/hrft^2
Explanation:
Rate of heat generation = 1000 W = 1000/0.29307 = 3412.15 Btu/hr
Area (A) = πD^2/4
Diameter (D) = 0.08 inches = 0.08 in × 3.2808 ft/39.37 in = 0.0067 ft
A = 3.142×0.0067^2/4 = 3.53×10^-5 ft^2
Volume (V) = A × Length
L = 20 inches = 20 in × 3.2808 ft/39.37 in = 1.67 ft
V = 3.53×10^-5 × 1.67 = 5.8951×10^-5 ft^3
Rate of heat generation in the wire per unit volume = 3412.15 Btu/hr ÷ 5.8951×10^-5 ft^3 = 5.79×10^7 Btu/hrft^3
Heat flux = 3412.15 Btu/hr ÷ 3.53×10^-5 ft^2 = 9.67×10^7 Btu/hrft^2
Answer:
A.
Explanation:
Individual footings are the commonest, and they are often used if the load of the building is borne by columns. Typically, every column will have an own footing. The footing is usually only a rectangular or square pad of concrete on which the column is erected
Answer with Explanation:
The capillary rise in 2 parallel plates immersed in a liquid is given by the formula

where
is the surface tension of the liquid
is the contact angle of the liquid
is density of liquid
'g' is acceleratioj due to gravity
'd' is seperation between thje plates
Part a) When the liquid is water:
For water and glass we have
Applying the values we get

Part b) When the liquid is mercury:
For mercury and glass we have
Applying the values we get

The negative sign indicates that there is depression in mercury in the tube.