1. An array contains the elements show below. The first two element have been sorted using a selection sort. What would be value of the elements in the array after three more pass of the selection sort algorithm?
7 8 26 44 13 23 98 57
2. An array contains the elements show below. The first two element have been sorted using a bubble sort. What would be value of the elements in the array after three more pass of the bubble sort algorithm?
7 8 26 44 13 23 57 98
3. An array contains the elements show below. The first two element have been sorted using an insertion sort. What would be value of the elements in the array after three more pass of the b insertion sort algorithm?
3 13 7 26 44 23 98 57
4. Write flowchart and program that copies a one-dimensional array of n elements into a two-dimensional array of k rows and j columns. The rows and columns must be a valid factor of the number of elements in the one-dimensional array; that is, k*j = n
5. An international standard book number (ISBN) is used to uniquely identify a book. It is made of 10 digits, as show in the Figure 1. Write flowchart and program that tests an ISBN to see if it is valid. For an ISBN numbers to be valid, the weighed sum of the 10 digits must be evenly divisible by 11. The tenth digit may be x, which indicates 10.