Ask Question
15 November, 07:14

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.

+3
Answers (1)
  1. 15 November, 11:12
    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?
Find 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 and Technology if you're in doubt about the correctness of the answers or there's no answer, then try to use the smart search and find answers to the similar questions.
Search for Other Answers