Words of Wisdom:

"you don't know what you've got 'til u say goodbye ." - Dstny_roman

Uop Ecet 370 Week 3 Lab 3 Linked Lists

  • Date Submitted: 03/28/2016 10:49 PM
  • Flesch-Kincaid Score: 65.6 
  • Words: 430
  • Essay Grade: no grades
  • Report this Essay
Check this A+ tutorial guideline at

http://www.assignmentcloud.com/ecet-370/ecet-370-week-3-lab-3-linked-lists

For more classes visit
http://www.assignmentcloud.com
General Instructions
Exercises 1, 2, and 3 use the programs in DocSharinglabeled “User-defined linked list."
Exercise 4 uses the programs in DocSharinglabeled “Using java.util.LinkedList."
Exercise 1: Review of Linked Lists Create a project using the classes in the DocSharing area labeled “User-defined linked list." Compile it, run it, and review the code that is given carefully. This code tests the LinkedList class provided in the lecture. Extend the class Main to test the functions isEmpty, search and remove of the class LinkedList.
Exercise 2: A User-Defined Linked List Modify the class LinkedList given in the lecture by adding to it the functions listed below for Exercise 2. In each case, the appropriate error message should be generated if an invalid condition occurs. a. toString(): modify the display function to overload the toString function of the Object class. b. int length(): create this function to determine the number of items in the list (accessor function). c. void clear(): create this function to remove all of the items from the list. After this operation is completed, the length of the list is zero. d. void insertEnd(int item): create this function to insert item at the end of the list. e. void replace(int location, int item): create this function to replace the item in the list at the position specified by location. The item should be replaced with item. f. int get(int location): create a function that returns the element at the position location.
Exercise 3: Using a Linked List This exercise is similar to Exercise 3 in Lab 2, but uses the LinkedList class implemented in Exercise 2 above. That is, using the class LinkedList, write a program that uses it to store 100 random numbers. Again, consider that each of these random numbers is an integer in the interval [0, 200]....

Comments

Express your owns thoughts and ideas on this essay by writing a grade and/or critique.

  1. No comments