Question: 1/ define and creation array 2/ check if the array is sorted (boolean function) 3/if the array is not sorted use selection or bubble algarthm
1/ define and creation array 2/ check if the array is sorted (boolean function) 3/if the array is not sorted use selection or bubble algarthm to sort the array(sorted array function) 4/if the array is sorted search for an x in the array of binary search (boolean function) 5/ if the x is found, print x is found, else x is not found
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
