Merging Ordered Lists Modify The Sortedlist Class From Exercise 21 7 To Include A M 1858593

(Merging Ordered Lists) Modify the SortedList class from Exercise 21.7 to include a merge method that can merge the SortedList it receives as an argument with the SortedList that calls the method. Write an application to test method merge.

Exercise 21.7

(Inserting into an Ordered List) Write a program that inserts 25 random integers from 0 to 100 in order into a linked-list object. For this exercise, you’ll need to modify the List class (Fig. 21.3) to maintain an ordered list. Name the new version of the class SortedList.

 

Prof. Angela

4.6/5

Calculate Price


Price (USD)
$
Open chat