You are on page 1of 1

Assignment #3

Submitted in 15-10-2012 by blackboard and e-mail. 1. Download A3 c++ folder from blackboard. 2. The file include the following: a. Declaration two orderedLinkedListType objects named list1 and list2 to handle double numbers. b. Insertion the following items in list1: 1.9, 2.3, 2.7, 3.1, and 3.6 c. Insertion the following items in list2: 2.1, 2.4, 2.9, and 3.2 d. Printing the elements of list1 and list2.

Question:
3. Add the following class operation to the class orderedLinkedListType: void mergeLists(orderedLinkedListType<Type> &list1, orderedLinkedListType<Type> &list2); This operation creates a new list by merging two ordered lists: list1 and list2. The new list is also ordered. Assume that class orderedLinkedListType is available for use. The general output of your program is the following:

You might also like