Answer:
The program is as follows:
i = 1
while(i<11):
j = 1
while(j<=i):
print('*', end = '')
j += 1
i += 1
print()
Explanation:
Initialize i to 1
i = 1
The outer loop is repeated as long as i is less than 11
while(i<11):
Initialize j to 1
j = 1
The inner loop is repeated as long as j is less than or equal i
while(j<=i):
This prints a *
print('*', end = '')
This increments j and ends the inner loop
j += 1
This increments i
i += 1
This prints a blank and ends the inner loop
print()
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 United States must lead the space race to prevent future wars.
Explanation: Hope this helps
Answer:
Estimated number of indigenous faults remaining undetected is 6
Explanation:
The maximum likelihood estimate of indigenous faults is given by,
here,
= the number of unseeded faults = 6
= number of seeded faults = 30
= number of seeded faults found = 15
So NF will be calculated as,

And the estimate of faults remaining is
= 12 - 6 = 6
Answer:
Explanation:
The detailed and careful step by step calculation and analysis is as shown with appropriate formula in the attached files