Answer:
Using the above algorithm matches one pair of Ghostbuster and Ghost. On each side of the line formed by the pairing, the number of Ghostbusters and Ghosts are the same, so use the algorithm recursively on each side of the line to find pairings. The worst case is when, after each iteration, one side of the line contains no Ghostbusters or Ghosts. Then, we need n/2 total iterations to find pairings, giving us an P(
)- time algorithm.
Answer:
sum2 = 0
counter = 0
lst = [65, 78, 21, 33]
while counter < len(lst):
sum2 = sum2 + lst[counter]
counter += 1
Explanation:
The counter variable is initialized to control the while loop and access the numbers in <em>lst</em>
While there are numbers in the <em>lst</em>, loop through <em>lst</em>
Add the numbers in <em>lst</em> to the sum2
Increment <em>counter</em> by 1 after each iteration
Saturated Pressure Temperature chart for R-22 shows 45 degF at 76 psig
65-45= 20 degF superheat
Answer:
155fts
Explanation:
We apply the bernoulli's equation to get the depth of water.
We have the following information
P1 = pressure at top water surface = 0
V1 = velocity at too water surface = 0
X1 = height of water surface = h
Hf = friction loss = 0
P2 = pressure at exit = 0
V2 = velocity at exit if penstock = 100ft/s
X2 = height of penstock = 0
g = acceleration due to gravity = 32.2ft/s²
Applying these values to the equation
0 + 0 + h = 0 + v2²/2g +0 + 0
= h = 100²/2x32.2
= 10000/64.4
= 155.28ft
= 155