subject

The unsorted list adt discussed in class (file “lecture_array_based_lists. pdf”) should be extended by the addition of two new methods: 1. a method named merge that concatenates 2 unordered lists into a third. assume that list_1 and list_2 don't have any keys in common. the resulting list should be an unsorted list that contains all of the items from list_1 and list_2 (preserve the order).2. a method named split that divides a list into 2 lists according to a key. if list_1 and list_2 are the resulting lists, list_1 should contain all the items of the original list whose keys are less than or equal to the key passed and list_2 should contain all the items of the original list whose keys are larger than the key passed. next, create a client to test your program. the client should work with 3 sorted lists named list_1, list_2 and result. read the data for list_1 and list_2 from the files list1.txt and list2.txt (take input from user the names of the input files, handle the filenotfoundexception exception (try/catch) and consume unwanted input.) merge list_1 and list_2 into result and split result according to a key (input from the user). make sure you handle all possible errors. sample output: input the name of the file to be opened for first list: list1. input the name of the file to be opened for second list: list2.txtthe first list is: 13 25 34 67 56 10 20 27 2 5 1 45 59the second list is: 73 29 14 87 72 100 200 127 22 15 19 145 159 78the merged list is: 13 25 34 67 56 10 20 27 2 5 1 45 59 73 29 14 87 72 100 200 127 22 15 19 145 159 78enter key for split: 49the first list after split is: 13 25 34 10 20 27 2 5 1 45 29 14 22 15 19the second list after split is: 67 56 59 73 87 72 100 200 127 145 159 78for input files: list1.txt: 13 c v b 25 34 x x 67 56 10 a a 20 27 2 a s 5 1 45 59list2.txt: 73 29 c c c 14 87 72 100 200 c c c 127 22 15 19 c v v v 145 159 78

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 02:50
Which of the following had the greatest influence on opening the internet to the generly public
Answers: 1
question
Computers and Technology, 22.06.2019 12:10
Linux is distributed under gnu gpl. why is this important? a. it ensures that only torvalds can profit from the sale of linux b. it prevents unknowledgeable users from downloading programs they don't know how to operate. c. it provides protection for the developers who created linux. d. it states that anyone can copy, modify, and share the program if changes are made public.
Answers: 1
question
Computers and Technology, 22.06.2019 17:30
Rachel completed typing an official document with a word processing program. she wants to make sure that her document has no typographical errors. she also wants all headings to have the same font. which features in a word processing program should she use? rachel should use the feature in a word processing program to find typographical errors. she should apply to have uniform headings.
Answers: 1
question
Computers and Technology, 23.06.2019 08:30
When you interpret the behavior of others according to your experiences and understanding of the world your evaluation is
Answers: 1
You know the right answer?
The unsorted list adt discussed in class (file “lecture_array_based_lists. pdf”) should be extended...
Questions
question
Mathematics, 14.12.2021 22:20
question
Geography, 14.12.2021 22:20
question
Mathematics, 14.12.2021 22:20
question
Mathematics, 14.12.2021 22:20
Questions on the website: 13722360