Lab 6: Circular Linked Lists

Due Date and Submission Requirements


The goal of this lab is:


Background and Directions

Indiana Jones and the Great Circle is a new video game coming out later this year. This game involves Indiana Jones visiting multiple historical landmarks around the world to stop some bad guy. If you were to draw a line through all these locations on a globe, it would form a perfect circle (hence the title "the great circle"). This gimmick seems hard to believe, but I am giving it a pass since it's Indiana Jones. In this lab, you will use a doubly circular linked list to keep track of the different locations in the great circle. Each Node in this linked list will have the location, the continent, and the elevation (in feet) of the location. You will need to make a Node class. The Nodes are created from an input file locations.txt, which you will then load into your linked list.

Using Lab6Demo.java as a starting point, you will need to define the necessary classes and methods so that this program produces the correct output.

CircularLinkedList.java implements the Lab6Methods interface, which tells you all the methods you need to write.


Rules

You are NOT allowed to import java.util.LinkedList;

This must be a circular, doubly linked list

Starting Code

Required Output

When your program is run, your output should look exactlythe same as seen in this screenshot .

Grading (10 points)



Deductions
  • -10 points if you dont use a Linked List
  • -100 points if you dont implement the interface