Maximum value and Index
The java code find a maximum value and its index from array of data A class Data2 has defined with two member functions named max and maxIndex to find maximum value and its index respectively. A object is created to the class,Data with array of integers which are randomly generated from random object. The random generated integer values limited to 1000. pseudocode of find maximum value Read N integer data set maxvaue = 0 for n=0 to N-1 check data[n] > maxvalue maxvalue = data[n] end for print maxvalue pseudocode of find maximum value index Read N integer data set mindex =0 set maxvaue = 0 for n=0 to N-1 check data[n] > maxvalue maxvalue = data[n] mindex = n end for print mindex package cljavabasics; import java.util.Arrays; import java.util.Random; public class ...