Answer:
See explaination.
Explanation:
An algorithm is specifically defined as the step by step method or process of achieving any type of result.
Please kindly see the attached file for the C algorithm that fulfils the answer of the given problem.
Is there a picture you can attach because some computers are different
Answer:
There is a distinction between where the script exists, given by __file__, and the current working directory (usually the place from which the script was invoked), given by os.getcwd(). It is not entirely clear from the question wording which one was intended, although they are often the same.
Answer:
a = [[34,38,50,44,39],
[42,36,40,43,44],
[24,31,46,40,45],
[43,47,35,31,26],
[37,28,20,36,50]]
sum=0
for r in range(len(a)):
for c in range(len(a[r])):
sum = sum + a[r][c]
print("Sum of all values: " + str(sum) + "\n\n")
print("Average of all values: " + str(sum / (len(a) * len(a))))
Explanation:
I got 100%.