Page 1 of 1

The purpose of this assignment is to give you an opportunity to demonstrate your understanding of creating and using fun

Posted: Tue Jul 12, 2022 8:19 am
by answerhappygod
The purpose of this assignment is to give you an opportunity to demonstrate your understanding of creating and using functions. In this exercise, you will revisit the program you created for the Unit 4 Application Exercise, but instead of importing the Python statistics module and using the statistics functions in that module, you will create and invoke your own version of each of the statistics functions.
Assume a text file named “myNumbers.txt” contains integers separated by a new line. Using Repl.it, create a Python program that opens the “myNumbers.txt” file and provides descriptive statistics of the values contained in the file. Name your file "lastName 5AE" with the appropriate file name extension. Submit your file to this assignment with your last name as the file name followed by the U4AE.py (e.g., Bohler_U5AE.py)
myNumbers.txt Download myNumbers.txt
Application specifications:
Docstring that explains the application.
Uses comments to provide the application's algorithm with sufficient detail.
Welcome the user.
Provide instructions if needed.
Allow the user to select the data file. Create a list from the data file, pass it to the functions you create.
Print to the screen a report with the following descriptive statistics (Remember, you must create and use your own functions).
Mean
Median
Mode
Standard Deviation (Sample)
Variance (Sample)
Minimum
Maximum
Range
Sum
Count
Ask the user if they have another data file to analyze.
Exit the application elegantly.
Code has adequate comments.
Remember to use the __main()__ function in your code as the entry point for the script as discussed on page 148 of your text.
The image below is an example of how to create and use a statistics function you created for this assignment.