Question: KEY ITEMS: Key items are marked in red. Failure to include or complete key items will incur additional deductions as noted beside the item. Submission




KEY ITEMS: Key items are marked in red. Failure to include or complete key items will incur additional deductions as noted beside the item. Submission and Grading: All project source code will be submitted in zyLabs. o Projects submitted after the due date are subject to the late penalties described in the syllabus. Each submitted program will be graded with the rubric provided in eLearning as well as a set of test cases. These test cases will be posted in eLearning after the due date. o zyLabs will provide you with an opportunity to see how well your project works against the test cases. Although you cannot see the actual test cases, a description will be provided for each test case that should help you understand where your program fails. Type your name and netiD in the comments at the top of all files submitted. (-5 points) Objectives: Implement a linked list using classes in Java Implement input validation Perform sorting and search algorithms on a linked list Problem: Darth Vader wants to check that his TIE fighter pilots are patrolling adequately-sized regions of the galaxy. He has files of data that contain the patrol coordinates for each of his pilots. With the fear of being force choked, you have agreed to write a program that analyzes the data and determines the size of the area patrolled by the pilots in addition to providing the ability to search and sort the data. Pseudocode: Your pseudocode should describe the following items . For each function, identify the following o Determine the parameters o Determine the return type o Detail the step-by-step logic that the function will perform Functions o Linked List Sort function o Main class . Main function . Any additional functions that you plan to create Class Details: Use good programming practice for classes - proper variable access, mutators and accessors, proper constructors, etc. Remember that classes exist to be used by other people. Just because you don't use it in the program doesn't mean it shouldn't be coded and available for others to use in theirs. As with previous projects, you are open to design the classes as you see fit with the minimum requirements listed below All classes must be of your own design and implementation. O Do not use the pre-defined Java classes (-20 points if pre-defined classes used) Payload class - Payload.java o Must be comparable O Attributes Name (String) . Area (double) . Compare (boolean) Tracks type of comparison (compare by area or name) O Methods Default constructor Overloaded constructor Pass in pilot's name Accessors . Mutators Node class - Node.java o Must be generic o Must be comparable o No reference to anything inside Payload o Attributes . Generic variable to hold object Will be used to hold payload object in the progran Next pointer Prev pointer O Methods Default constructor Overloaded constructor Pass in generic object for payload Accessors for pointers Mutators for pointers Linked List - Linkedlist.java o No reference to anything inside Payload o Attributes Head pointer (points to beginning of list) Tail pointer (points to end of list) o Default constructor o Overloaded constructor Takes node and assigns head and tail to point at the node passed in o Accessor o Mutator o toString (overridden) . create a string that lists each pilot and their respective area separated on individual lines
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
