COSC-2336 Programming Fundamentals III (Data Structures) Programming Assignment 7 The implementations of the methods contains(E e),...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
COSC-2336 Programming Fundamentals III (Data Structures) Programming Assignment 7 The implementations of the methods contains(E e), get(int index), indexOf(E e), lastIndexOf(E e), and set(int index, E e) are omitted in the Listing 24.5 MyLinkedList class. Implement the above methods. Define a new class named MyLinkedListExtra that extends MyLinkedList to override these methods. Test your implementation with the program, MyLinkedListAugmented .java. Your output should match the sample below: Original list: [Mike, Jim, Alice, George, Stevie, Cheryl, George, Jane, Ella, Jenny, Kathy, Jane] Enter a name: Sue Enter an index at which to store this name: 3 Revised list: [Mike, Jim, Alice, Sue, George, Stevie, Cheryl, George, Jane, Ella, Jenny, Kathy, Jane] List contains Sue: true Item at index 3: Sue Index of George: 4 Last index of George: 7 Store the source code in a file named MyLinkedListAugmented-your_name>java. In comments at the top of the source code file place the following: COSC 2336 Instructor: Programming Assignment 7 Due: Additional documentation should follow the guidelines in the CS Department's Programming Documentation Requirements, which can be accessed under Content. Upload your source code and screenshot of output to Blackboard. COSC-2336 Programming Fundamentals III (Data Structures) Programming Assignment 7 The implementations of the methods contains(E e), get(int index), indexOf(E e), lastIndexOf(E e), and set(int index, E e) are omitted in the Listing 24.5 MyLinkedList class. Implement the above methods. Define a new class named MyLinkedListExtra that extends MyLinkedList to override these methods. Test your implementation with the program, MyLinkedListAugmented .java. Your output should match the sample below: Original list: [Mike, Jim, Alice, George, Stevie, Cheryl, George, Jane, Ella, Jenny, Kathy, Jane] Enter a name: Sue Enter an index at which to store this name: 3 Revised list: [Mike, Jim, Alice, Sue, George, Stevie, Cheryl, George, Jane, Ella, Jenny, Kathy, Jane] List contains Sue: true Item at index 3: Sue Index of George: 4 Last index of George: 7 Store the source code in a file named MyLinkedListAugmented-your_name>java. In comments at the top of the source code file place the following: COSC 2336 Instructor: Programming Assignment 7 Due: Additional documentation should follow the guidelines in the CS Department's Programming Documentation Requirements, which can be accessed under Content. Upload your source code and screenshot of output to Blackboard.
Expert Answer:
Related Book For
Introduction to Java Programming, Comprehensive Version
ISBN: 978-0133761313
10th Edition
Authors: Y. Daniel Liang
Posted Date:
Students also viewed these programming questions
-
CANMNMM January of this year. (a) Each item will be held in a record. Describe all the data structures that must refer to these records to implement the required functionality. Describe all the...
-
can someone solve this Modern workstations typically have memory systems that incorporate two or three levels of caching. Explain why they are designed like this. [4 marks] In order to investigate...
-
Assume that self-esteem measurements are not affected by an interaction between subject self-esteem and target self-esteem. Is there sufficient evidence to support the claim that the category of the...
-
Let f: (Z Z, ) (Z, +) be the function defined by f(x, y) = x - y. [Here (Z Z, ) is the same group as in Exercise 5, and (Z, +) is the group of integers under ordinary addition.] (a) Prove that f...
-
Using the mutual fund quotes in Exhibit 13.4, and assuming that you can buy these funds at their quoted NAVs, how much would you have to pay to buy each of the following funds? a. American Century...
-
This case deals with several issues regarding contract formation under the UCC. Logan and Kanawha Coal agreed to purchase coal from Detherage via a fax dated March 9, 2010. The fax stated that it had...
-
Cost of Land vs. BuildingEthics Tones Company purchased a warehouse in a downtown district where land values are rapidly increasing. Gerald Carter, controller, and Wilma Ankara, financial vice...
-
Beddington and May (1982) have proposed the following model to study the interactions between baleen whales and their main food source, krill (a small shrimp-like animal), in the southern ocean: - x...
-
Create a Java program that prints out this kind of figure using asterisks. ********** * * * * * * * **********
-
4) For the combinational circuit shown below A B D- T3 DF F T4 F2 a. Write the Boolean expressions of T1 through 74. Write also the Boolean functions F1 and F2 in terms of the four input variables....
-
we discussed the function of controlling and the tools managers use to measure performance. As you can see, this is important to the manager because it will determine whether there is a need for...
-
Write a program that encrypts a text by applying XOR (excluding or) operation between the given source characters and given cipher code. The encryption should be done by applying XOR between the...
-
Your task for this assignment is to select any one of your programming assignments and to rewrite it as generic software. This means that the class for the data structure -- array, linked list, stack...
-
Evaluate the level of autonomy, mastery, and purpose in your current job (or a previous job). What could your company (or previous company) do to improve or maintain a strong culture of engagement...
-
Tillman Fabrications has five operating segments, as summarized below: Wood Plastic Metal Paper Fabric Sales to outside entities 5,200,000 1,200,000 7,800,000 1,600,000 6,300,000 Intersegment sales...
-
Is times interest earned meaningful for utilities? Why or why not?
-
In the section of his 2007 letter to the shareholders of Berkshire Hathaway titled Fanciful FiguresHow Public Companies Juice Earnings, Warren Buffett referred to the investment return assumption...
-
Based on 2012 revenues, the six largest providers of oilfield services are: 1. Schlumberger Ltd. (NYSE: SLB) Revenues: $42.1 billion Net income: $5.5 billion 2. Halliburton (NYSE: HAL) Revenues:...
-
On 21 September 2000, Intel Corporation (NASDAQ -GS: INTC)3 issued a press release containing information about its expected revenue growth for the third quarter of 2000. The announced growth fell...
Study smarter with the SolutionInn App