Answer:
The output to the given code as follows:
Output:
10
100
64
36
16
4
0
4
16
36
64
Explanation:
In the given java code, an integer variable "i" and an array number is defined, which size is 10, in the next step two for loop is declared, that can be described as follows:
- In the first loop, array use loop variable "i" use, which minus the value of 5 and multiplies by 2, and it will calculate the square of that number.
- In the next step, a for loop is declared, that prints these array number variable square.
Answer:
Antelope Baboon Cheetah Elephant Giraffe, first, then it would search Warthon then Okapi, the manner of a binary search essentially splits the list in half and goes from right to left and then does the same to the other side.
Explanation: