Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Details, garbagedata.txt file Write a program to do the following: . Read the numbers from text file garbage Data.txt Store those numbers in an array

Details, image text in transcribed
garbagedata.txt file
image text in transcribed
Write a program to do the following: . Read the numbers from text file garbage Data.txt Store those numbers in an array and output the following statistics: 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 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. 40 50 43 98 20 10 67 84 25 71 37 54 32 90 62 76 49 69 95 44 11 22 33 44 55

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_2

Step: 3

blur-text-image_3

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

The Manga Guide To Databases

Authors: Mana Takahashi, Shoko Azuma, Co Ltd Trend

1st Edition

1593271905, 978-1593271909

More Books

Students also viewed these Databases questions