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

in python
in python Requirements - Obtain a file name from the user, which

Requirements - Obtain a file name from the user, which will contain data pertaining to a 2D grid of numbers - Store the information from the flle in a last of lists of floats - Create a file for each of the following - averages, be : contains the overall average of the entire array, thon the average of each row - roverse bxt ; contains the original values but each row is reversed - flippeditat : 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 (NxxN), create a diagonaltet, contains the array minored on the diagonal Example files The input file will be formatted in the following way: 4nan rows? enum cols? (values) Sample tie callod input, bet 441.62.07.04.05.06.07.08.09.10.11,12,13.014.015.16.0 Output to averages txt Total average: 8.5 Row 1 average: 2.5 Row 2 averaget 6.5 Row 3 average: 10.5 Row 4 werage: 14.5 Output to reverse.bit 4.03.02.01.08.97.96.65.012.11.819.09.016.015.014.013.0 Output to flippod tot. 13.014.615+.16.09.010.011.012.05.06.07.08.01.02.0.3.042 Since ir's symmetrio we also got diagonal bet 1.92.03.04.0.8.05.0.9.06.07.012.013.010.011.016.014.015.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!