Question: Can someone please help with this? Assignment7 ---Week14(10pts) Instructions #Create the python program that reads in a text file with single digit integers #and creates

Can someone please help with this? Assignment7 ---Week14(10pts) Instructions #Create the python program that reads in a text file with single digit integers #and creates an array. Print the array. Use a for loop and find the average of the numbers in the array. #remember that you do not know how many numbers are in the text file #Print each array element and calculate the difference between it and the average #print the difference. ****optional-Modify the program to have 3 functions(5pts.) Pseudocode/python created in classUse this and actually create the python code that executes and put it and your numbers.txt file into the dropbox. ****************************************************************** #Initialize array and count numbers[] count=0 total=0 #Open the file num_f num_f=open(numbers.txt) #loop to create the array for value in num_f: #create array numbers.append(int(value)) #print array print(numbers[count] #add to subtotal total=total + numbers[count] count=count+1 #calculate average avg=total/count count1=0 diff=0 for count1 in range(0,count): diff=numbers[count1] - avg print(diff) ?

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 Databases Questions!