Write a program that animates the merge of two sorted lists. Create two arrays, list1 and list2,

Question:

Write a program that animates the merge of two sorted lists. Create two arrays, list1 and list2, each of which consists of 8 random numbers from 1 to 999. The array elements are displayed, as shown in Figure 23.22a. Clicking the Step button causes the program to move an element from list1 or list2 to temp. Clicking the Reset button creates two new random arrays for a new start. When the algorithm is finished, clicking the Step button displays a message to inform the user.image

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Question Posted: