Question: Question: Random numbers between 16 and 36 will be assigned to an empty array of integers with 10 elements. The elements of this created array
Question: Random numbers between 16 and 36 will be assigned to an empty array of integers with 10 elements. The elements of this created array will be compared in pairs according to a certain rule. Draw the flow diagram of the algorithm that prints the first created sequence and the sequence resulting from the comparison on the screen and write the pseudo code. (Comparison Rule: The first index will be compared with the last index elements, if the number in the lower index is greater than the number in the large index, the array elements will be replaced. The process will continue until all indices are checked. If it is greater, the numbers in the two indices will be swapped. Then the numbers in the 2 and 7 indices will be compared and this process will continue until all relevant indices are compared.)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
