Question: C++ beginners 3. Consider the declaration double bi10) 11.2, 2.1, 3.3, 3.5, 4.5,7.9. 5.4 which is done in the mainO function. Write a function named
3. Consider the declaration double bi10) 11.2, 2.1, 3.3, 3.5, 4.5,7.9. 5.4 which is done in the mainO function. Write a function named out_of_order and pass the array into it and test this array to see if it is in ascending (increasing) order. That 8.7. 9.9, 1.0 is, test for the condition bto) b(1)b(2) (using a loop) The function returns a value of-1 if the elements are not out of order otherwise, ?t returns the index (the element number) of the first element that is out of order. You only need to write the function Do not write the entire program
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
