Discussion: Python grade data program

Discussion: Python grade data program ORDER NOW FOR CUSTOMIZED AND ORIGINAL ESSAY PAPERS ON Discussion: Python grade data program Need help writing a program in Python that is able to read grade data from text file, view computed statistical values based on the data, and to save the computed statistics to a text file. The user should have the option to load a data file . The data consists of integer values representing student grades in a class. The value ranges from 0 to 100. The data is stored in a text file with each value separated by a white space. You may assume that that number of data points in the file will never exceed 1,000. Assignment instructions attached. Discussion: Python grade data program csc115_program_4.docx COMPSCI 172 Program 4 Topics: list, file input/output Due Nov 12th, midnight You will write a program that allows the user to read grade data from a text file, view computed statistical values based on the data, and to save the computed statistics to a text file. You will use list to store the data read in and for computing the statistics. You must use functions. The data: The user has the option to load a data file. The data consists of integer values representing student grades in a class. The value ranges from 0 to 100. The data is stored in a text file with each value separated by a white space. You may assume that that number of data points in the file will never exceed 1,000. Descriptive Statistics: The user has the option to compute statistics on the grade data. Your program will compute the following values: • Min – the lowest value in the data • Max -the highest value in the data • Mean – the average value • Median – the middle value of the sorted values To compute the median, you must first sort the data. When the data size is odd, there’s only one middle value to pick from as the median. When the data size is even, there are two middle values and you can pick either one as the median. Discussion: Python grade data program aving result: The user has the option to save the statistics to a file. Your program will save the descriptive statistics result to a text file, each value per line. The format as in the sample below: Min = 35 Max = 100 Mean = 79 Median = 73 Grading: Points are assigned to different part of the program. Reading the input file 2 points Sorting the data 1 point Min, Max, Mean, Median 4 point Saving output file 2 points Comments/Style 1 point Submission: You must zip your program and upload it to D2L dropbox Program 3. If you submit an unzipped file, you will lose 1 point. If your file is not zip, the grade must rename your file manually and this increase the amount of time to grade. Sample run: Choose an option: 1. Load data 2. Display computed statistics 3. Save computed statistics 4. Exit Choice: 1 Enter the name of the file: Data read successfully. data.txt Choose an option: 1. Load data 2. Display computed statistics 3. Save computed statistics 4. Exit Choice: 2 Below are the Min = Max = Mean = 79.3 Median = compute values: 35 100 73 Choose an option: 1. Load data 2. Display computed statistics 3. Save computed statistics 4. Exit Choice: 3 Enter the name of the file: data-stats.txt Result saved successful. Choose an option: 1. Load data 2. Display computed statistics 3. Save computed statistics 4. Exit Choice: 4 Goodbye! … Get a 10 % discount on an order above $ 100 Use the following coupon code : NURSING10

Read more

Discussion: Python grade data program

Discussion: Python grade data program ORDER NOW FOR CUSTOMIZED AND ORIGINAL ESSAY PAPERS ON Discussion: Python grade data program Need help writing a program in Python that is able to read grade data from text file, view computed statistical values based on the data, and to save the computed statistics to a text file. The user should have the option to load a data file . The data consists of integer values representing student grades in a class. The value ranges from 0 to 100. The data is stored in a text file with each value separated by a white space. You may assume that that number of data points in the file will never exceed 1,000. Assignment instructions attached. Discussion: Python grade data program csc115_program_4.docx COMPSCI 172 Program 4 Topics: list, file input/output Due Nov 12th, midnight You will write a program that allows the user to read grade data from a text file, view computed statistical values based on the data, and to save the computed statistics to a text file. You will use list to store the data read in and for computing the statistics. You must use functions. The data: The user has the option to load a data file. The data consists of integer values representing student grades in a class. The value ranges from 0 to 100. The data is stored in a text file with each value separated by a white space. You may assume that that number of data points in the file will never exceed 1,000. Descriptive Statistics: The user has the option to compute statistics on the grade data. Your program will compute the following values: • Min – the lowest value in the data • Max -the highest value in the data • Mean – the average value • Median – the middle value of the sorted values To compute the median, you must first sort the data. When the data size is odd, there’s only one middle value to pick from as the median. When the data size is even, there are two middle values and you can pick either one as the median. Discussion: Python grade data program aving result: The user has the option to save the statistics to a file. Your program will save the descriptive statistics result to a text file, each value per line. The format as in the sample below: Min = 35 Max = 100 Mean = 79 Median = 73 Grading: Points are assigned to different part of the program. Reading the input file 2 points Sorting the data 1 point Min, Max, Mean, Median 4 point Saving output file 2 points Comments/Style 1 point Submission: You must zip your program and upload it to D2L dropbox Program 3. If you submit an unzipped file, you will lose 1 point. If your file is not zip, the grade must rename your file manually and this increase the amount of time to grade. Sample run: Choose an option: 1. Load data 2. Display computed statistics 3. Save computed statistics 4. Exit Choice: 1 Enter the name of the file: Data read successfully. data.txt Choose an option: 1. Load data 2. Display computed statistics 3. Save computed statistics 4. Exit Choice: 2 Below are the Min = Max = Mean = 79.3 Median = compute values: 35 100 73 Choose an option: 1. Load data 2. Display computed statistics 3. Save computed statistics 4. Exit Choice: 3 Enter the name of the file: data-stats.txt Result saved successful. Choose an option: 1. Load data 2. Display computed statistics 3. Save computed statistics 4. Exit Choice: 4 Goodbye! … Get a 10 % discount on an order above $ 100 Use the following coupon code : NURSING10

Read more
Enjoy affordable prices and lifetime discounts
Use a coupon FIRST15 and enjoy expert help with any task at the most affordable price.
Order Now Order in Chat

Start off on the right foot this semester. Get expert-written solutions at a 20% discount