Question: In this coding assignment you will utilize the Java syntax and techniques you learned while reviewing the required resources for Week 3. You may select

In this coding assignment you will utilize the Java syntax and techniques you learned while reviewing the required resources for Week 3. You may select appropriate variable names as long as proper Java syntax is used. You will also submit your source code.

Input: In the input section, utilize Java syntax and techniques to add five items into a list abstract data type (ADT). Select a list for your program. List examples include students, athletes, days of the week, cities, etc. All input can be hard coded into the Java code.

Processing and Output: In the processing section, after the elements are added to the list ADT, the following processes must be completed in the following order:

  • Print out the contents of the original list. (Output)
  • Using the list add(int index, E element) method, insert an element of your selection into the specified position in the list. (Processing)
  • Print out the updated contents of the list.
  • Using the list remove(int index) method, remove an element at the specified position in the list.
  • Print out the updated contents of the list.

Your code must include the following as comments:

  • Name of program
  • Author/student's name
  • Course name and number
  • Instructor's name
  • Date submitted

In a Word document, explain how you utilized functions of lists in your Java program in a minimum of 200 words. Paste the image of your results and your source code into the document. Submit your Word document to Waypoint for grading.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!