# Put appropriate comments including your name, and a description # of what the program does at the top of this file from graphics import * from string import * # Get the input file name from user by getting the text of the "Entry object" # after the user clicks in the window with the mouse. # The button is simply a text field that gives feedback to the user # This function should return the input file opend for reading def getInputFile(window, entry, button): # get file from user # Use a while loop and exception handling to check that # the file exists. # If file does not exist (IOError should be caught), # Display appropriate message on button and give user another opportunity # to enter the name of a file that exists. # When the user enters the name of a file that exists, # Give appropriate feedback and break # out of the while loop # REPLACE WITH YOUR CODE return inFile # Find the sum and count of the numbers in the given line. # Returns a pair of #s consisting of the given line's sum + old_sum # and the given line's count of # of numbers found + old_count. def updateSumAndCount(line, old_sum, old_count): pass # replace with your code # Reads numbers from the given file, which must already be open # for reading, # and returns the mean and count of all the numbers found. def computeMeanAndCount(the_file): # Hint: This function should call updateSumAndCount() pass # replace with your code # create the Graphical User Interface and run the program. def main(): # Fill in your code to create the GUI # This function should also run the program # Can use a mouse click event to terminate the program # Don't forget to close the window you created # replace with your code main()