Question: write python code for Do the following. Import array module and random module to do the following. Use the random number generator to generate 1

write python code for Do the following. Import array module and random module to do the following. Use the random number generator to generate 100 numbers in the range -25 to 100[2 marks]. Arrange the values you generated as a 10 x 102D array [2 marks]. Do the following. 4
(i) In each row, determine the maximum and minimum. Print the values with respective indices [8 marks];
(ii) Determine the maximum and minimum values in the entire array. Print the values with respective indices [8 marks];
(iii) Multiply all the entries in a row and print their product. Store the product values in a list. Determine and print which row gives you the maximum product. [10 marks].
Note: In this problem, you may use the Pythons built-in functions for max and min operations.

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 Programming Questions!