Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed

image text in transcribed

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Systems Design Implementation And Management

Authors: Peter Rob, Carlos Coronel

6th International Edition

061921323X, 978-0619213237

More Books

Students also viewed these Databases questions

Question

Solve Leave your answers in surd form. 5 x + 2 + 3 x-4 = 2.

Answered: 1 week ago