Question: Draw a flowchart for the Python code. # This function is used to read the numbers of the array def read ( ) : print

Draw a flowchart for the Python code.
# This function is used to read the numbers of the array
def read():
print("Enter series of numbers: ")
A = list(map(int, input().split()))
return A
#This function is used to find lowest number in the array
def lowest(size, A):
mini = A[0]
for i in range(1, size):
if(A[i]maxi):
maxi = A[i]
return maxi
#This function is used to find total of the numbers in the array
def total(A):
res =0
for i in A:
res += i
return res
#This function is used to find average of the numbers in the array
def average(A):
res = total(A)
return res/len(A)
#Main function
def main():
A = read()
size = len(A)
print("Lowest of the numbers in the array is : ", lowest(size, A))
print("Highest of the numbers in the array is : ", highest(size, A))
print("Total of the numbers in the array is : ", total(A))
print("Average of the numbers in the array is : ", average(A))
if __name__=="__main__":
main()

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!