First, generate an array of 20 input random integers in the range between 0 to 3
ID: 1935155 • Letter: F
Question
First, generate an array of 20 input random integers in the range between 0 to 30 and display. Then, sort the generated 20 random integer numbers in ascending order using "THE SELECTION SORT" method and display your sorted output data flow chart. Next, generate a single random integer number in the same range between 0 to 30, display and then search this generated single random integer value in your sorted array using " THE BINARY SEARCH" method and display your result. If the number is found, display the value with its array subscript. Otherwise, display a message that "the value was not in the array"Explanation / Answer
please post this in the correct section (computer science).. they will be able to help you :)
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.