Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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:

image text in transcribed

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

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

Step: 3

blur-text-image

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

More Books

Students also viewed these Databases questions

Question

=+ c. a company president deciding whether to open a new factory

Answered: 1 week ago