Netbeans:use arrays and methods to
Write an int function named outOfOrder that takes as parametersan array of double and an int, size. This function will test thisarray for being out of order, meaning that the array violate thecondition: a[0]<=a[1]<=a[2]<=… The function returns -1 ifthe elements are not out of order; otherwise, it will return theindex of the first element of the array that is out of order. Forexample, consider the declaration double a[10] ={1.2, 2.1, 3.3,2.5, 4.5, 7.9, 5.4, 8.7, 9.9, 1.0 }; in this array, a[2] and a[3]are the first pair out of order, a[3] is the first element out
PayPal Gateway not configured
PayPal Gateway not configured