Question: Hi I want to create a python and c++ program that does the following create a program that generates a 2D Array the size the

Hi I want to create a python and c++ program that does the following

  • create a program that generates a 2D Array the size the user asks for

    • you need to get rows and columns

  • using loops, randomly generate numbers between 1 and 50 and place them in the 2D-array

  • then have a function that accepts the 2D array and finds the average of all the numbers

    • remember, loop inside of a loop!

    • no using a built in average function

example:

Hi I want to create a python and c++ program that does

How many row would you like: 2 How many columns would you like: 1 The average of all the numbers is: 3.00 Done. 1

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!