Question: Program should be user - friendly ( output messages to describe the output ) and be well - documented / commented ( have comments for
Program should be userfriendly output messages to describe the outputand be well
documentedcommented have comments for every line of code
Design a programprojectdriver class YourNameAssignmentand the following classes with exact names, replace YourName with your
actual name or the name you go byno spaces:
YourNameTree:
The complete version of the userdefined Tree interface. Add complete code for the: containsAll, addAll, removeAll, retainAll, and toArray methods.
YourNameBinarySearchTree:
The complete version of userdefined binary search tree BST class.
YourNameAVLTree:
The complete version of the userdefined selfbalancing binary search tree AVLTree class that uses YourNameBinarySearchTree instead of the BTS
YourNameMap:
The complete version of the userdefined MyMap.
YourNameHashMap:
The complete version of the userdefined MyHashMap that uses the YourNameMap instead of the MyMap.
YourNameHashSet:
The complete version of the userdefined MyHashSet.
YourNameEdge:
The complete version of the userdefined Edge.
YourNameGraph:
The complete version of the userdefined Graph.
YourNameUnweightedGraph:
The complete version of the userdefined UnweightedGraph that uses the YourNameGraph instead of the Graph.
YourNameAssignmentdriver class:
The main method processes the AssignmentDataFile.txt file line format: CityCityDistanceand build instances of the classes above as requested bellow:
Read the Distance values from the AssignmentDataFile.txt file and build instances of the userdefined
YourNameBinarySearchTree and YourNameAVLTree above called MyYourNameBST and MyYourNameAVLT and testdemonstrate ALL functionalitymethods for both meaning it will call all
methods to show that they work correctly
Read the Cityvalues from the AssignmentDataFile.txt file and build an instance of the userdefined
YourNameHashSet class above called MyYourNameHS and testdemonstrate ALL
functionalitymethods for it
Read the Cityand Distance pair of values from the AssignmentDataFile.txt file and build an instance
of the userdefined YourNameHashMap class above called MyYourNameHM and testdemonstrate ALL functionalitymethods for it
Read the Cityand Citypair of values from the AssignmentDataFile.txt file and build instance of the
userdefined YourNameUnweightedGraph class above called MyYourNameUG with the cities as vertices and CityCityand CityCityas edges and demonstrate ALL functionalitymethods for it
You can optimize the reading from the file and build all the structures in one reading of the file.
AssignmentData.txt file contents:
Albany Minneapolis
Albuquerque Albany
Atlanta St Louis
Austin Fort Worth
Baltimore El Paso
Baltimore Seattle
Billings Salt Lake City
Birmingham Wichita
Boise Houston
Boston Oklahoma City
Boston Omaha
Charleston Denver
Charleston Reno
Charlotte Cleveland
Charlotte Las Vegas
Chicago San Jose
Cleveland Detroit
Columbus Memphis
Dallas El Paso
Denver Oklahoma City
Denver Phoenix
Des Moines Albuquerque
Detroit Boise
Detroit Denver
El Paso Little Rock
El Paso San Antonio
Fargo Orlando
Fort Worth Houston
Houston Austin
Houston Buffalo
Indianapolis Washington
Jackson Charleston
Jacksonville NashvilleDavidson
Kansas City New York
Las Vegas Birmingham
Las Vegas New York
Little Rock Rapid City
Los Angeles Des Moines
Los Angeles San Francisco
Louisville Charlotte
Memphis Louisville
Memphis NashvilleDavidson
Milwaukee Denver
Minneapolis Washington
Nashville Norfolk
NashvilleDavidson Memphis
New York Los Angeles
New York Nashville
Norfolk Las Vegas
Oklahoma City Boston
Oklahoma City Chicago
Omaha San Antonio
Orlando Billings
Philadelphia Boston
Philadelphia San Francisco
Phoenix Las Vegas
Portland Dallas
Rapid City Atlanta
Reno Kansas City
Salt Lake City Charleston
San Antonio Fort Worth
San Antonio Jackson
San Diego San Jose
San Francisco Fargo
San Francisco New York
San Jose San Francisco
Seattle Memphis
Seattle New York
St Louis Baltimore
Washington El Paso
Washington Seattle
Wichita Los Angeles
Show output
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
