Write a program that will generate random numbers and that numbers will be stored in a two-dimensional array. Then display the generated values on the screen and then also print the even numbers from the generated array elements.

 

Write a program that will generate random numbers and that numbers will be stored in a two-dimensional array. Then display the generated values on the screen and then also print the even numbers from the generated array elements.

 

Task 1:

 

First of all, you are required to generate random numbers from 1 to 500. For this, you are required to create a function named as “generateArray. The generate Array will load two- dimensional array with random numbers from 1 to 500. The size of the two-dimensional array will be 7*7.

 

Task 2:

 

Defined a function named as “showArray(), which will display the elements of the two- dimensional array on the screen. See the sample output.

 

Task 3:

The final task is to find the even numbers in this array and display it on the console. For this purpose create a function findEvenNumber().

 

 

Sample output:

 

 

 

 

 

 

Unlike most other websites we deliver what we promise;

  • Our Support Staff are online 24/7
  • Our Writers are available 24/7
  • Most Urgent order is delivered with 6 Hrs
  • 100% Original Assignment Plagiarism report can be sent to you upon request.

GET 15 % DISCOUNT TODAY use the discount code PAPER15 at the order form.

Type of paper Academic level Subject area
Number of pages Paper urgency Cost per page:
 Total: