Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Please help! Will give thumbs up Only use import sys and nothing else. Please explain each function and method to help understand. Program must be
Please help! Will give thumbs up
Only use import sys and nothing else.
Please explain each function and method to help understand.
Program must be written in Python 3
Write a program that reads data from a file and produces a frequency distribution table that has the following information: the class boundaries, the frequency, the midpoint, the relative frequency, and the cumulative frequency. In addition to the table, the mean and standard deviation of the frequency distribution must be reported. The program output must be written to the console (standard out). The file must be passed into the program using a command line argument; you must not hard-code the file path. The expected file format is: First line: Number of classes Second line: comma separated list of data entries with arbitrary amounts of white space Example input file: 5 7,39,13,9,25,8,22,0,2,18,2,30,7,35,12,15,8,6,5,29,0,11,39,16,15 The only library that you are allowed to import for this assignment is sys. If you utilize any other
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started