Question: using python please Requirements - Obtain a file name from the user, which will contain data pertaining to a 2D grid of numbers - Store

 using python please Requirements - Obtain a file name from the

using python please

Requirements - Obtain a file name from the user, which will contain data pertaining to a 2D grid of numbers - Store the information from the file in a list of lists of floats - Create a file for each of the following: - averages.txt : contains the overall average of the entire array, then the average of each row - reverse.txt : contains the original values but each row is reversed - flipped.txt : contains the original values but is flipped top to bottom (first row is now the last row etc.) - If the dimensions of array are symmetric (NxN), create a diagonal.txt: contains the array mirrored on the diagonal Example files The input file will be formatted in the following way: > 441.02.03.04.05.06.07.08.09.010.011.012.013.014.015.016.0 Output to averages.txt Total average: 8.5 Row 1 average: 2.5 Row 2 average: 6.5 Row 3 average: 10.5 Row 4 average: 14.5 Output to reverse.txt 4.03.02.01.0 8.07.06.05.0 12.011.010.09.0

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!