Ask Question
11 August, 20:30

Write a program that fills out a two dimensional array of size 10 by 10 with random integers ranging from 0 through 99 and then finds out the largest item in the array.

+4
Answers (1)
  1. 11 August, 21:21
    0
    This program is for a 10 by 10 array. It accepts random numbers from 0 to 99.

    Explanation:

    After accepting the number it prints the largest number.

    private static int[] generateArray (int min, int max) {

    Random rd = new Random ();

    int randomSize = min + rd. nextInt (max);

    System. out. println ("Random array size: " + randomSize);

    int[] array = new int[randomSize];

    for (int i = 0; i < randomSize; i++) {

    array[i] = min + rd. nextInt (max);

    }

    return array;

    }
Know the Answer?
Not Sure About the Answer?
Get an answer to your question ✅ “Write a program that fills out a two dimensional array of size 10 by 10 with random integers ranging from 0 through 99 and then finds out ...” in 📙 Computers & Technology if there is no answer or all answers are wrong, use a search bar and try to find the answer among similar questions.
Search for Other Answers