Answered step by step
Verified Expert Solution
Question
1 Approved Answer
garbageData.txt : Assignment #4 - Data Structures and Files Due: Check Blackboard Course Site for Due Date Write a program to do the following: Read
garbageData.txt :
Assignment #4 - Data Structures and Files Due: Check Blackboard Course Site for Due Date Write a program to do the following: Read the numbers from text file garbageData.txt Store those numbers in an array and output the following statistics: o Sum of all the numbers o The average o The standard deviation For each number in your array, add a different random number that ranges from 1 to 10 AND store that new value in a different array. For example, the first number could have 8 added to it and the second number could have 10 added to it. Output the following statistics for the new array o Sum of all the numbers o The average o The standard deviation Store the values of the new array into a new text file named myOutput.txt. Make sure that numbers are arranged in a grid that is 5 by 5 with a space between each number. You should have 5 lines with 5 numbers on each line. Save the program as a *py file and upload the both the python file and your output file (myOutput.txt) to blackboard.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