Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Hello I needed advice on this problem. Can someone explain it better in depth? Using Python and garbageData.txt. Using Python, read the numbers from text
Hello I needed advice on this problem. Can someone explain it better in depth? Using Python and garbageData.txt.
Using Python, read the numbers from text file garbage Data.txt Store those numbers in an array and output to the screen (Spyder) the following statistics: Sum of all the numbers The average The standard deviation For each number in your array, identify which quintile they belong to: Number Quintile 1 - 20 A 21-40 B 41 - 60 61 - 80 D 81 - 100 E Store the values of the array along with their Quintile into a new text file named myOutput.txt. This should be in a list format where you will list the number and the quintile. The first few lines should look like this: 40 B 50C 98 E At the end of file (myOutput.txt), also save a table stating the count of numbers that fall into each quintile. For example, it should look similar to this (the numbers below are not accurate so your output should NOT have the same numbers): A4 B6 C3 DS E 7 48 8 8 43 28 18 67 84 2571 754 2 62 6 49 8 95 44 11 22 3 44 55Step 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