Hello all,
I am very new to programming and my teacher has started us on Python. While I think Python would be a great choice for most people, I have come to the conclusion that I am not cut out for programming. I am finding it very difficult, though fun. I have to have 2 tiny programs turned in in about 12 hours and have no idea what I am doing.
Here is what I have to do:
A. Build a module that contains three functions that do the following:
Compute the average of a list of numbers
Finds the statistical median value of a list of numbers
Finds the mode of a list of numbers
B. Write a program that allows you to do the following five operations:
Prompt the user to input a list of numbers (Hint: be sure to have a way for the user to indicate that they are done finished providing the list of numbers)
Open a file that contains a list of numbers
Compute the average, statistical median, and mode of the list of numbers
Store your answers in another file
Asks the user whether they want to see the answers and if the answer is yes, opens the file and displays the numbers.
While I am not asking for a handout, because learning on my own is the only way to learn, I am having a very hard time with this. I believe that I can handle part A, but when I put it in to B is when I have trouble. I can not figure out how to make it do the math for both lists, and I do not know how to open, save, or write to files. Any nudging in the right direction would be greatly appreciated.
Thanks,
P