Implement a city database using ordered lists by using java. Each database record contains the name of the city (a string of arbitrary length) and the coordinates of the city expressed as integer x and y coordinates. Your database should allow records to be inserted, deleted by name, and searched by name. Another operation that should be supported is to print all records within a given distance of a specified point/coordinate. The order of cities should be alphabetically by city name. Implement the database using both: an arraybased list implementation, and a circular single linked list implementation. Use may the following node, SLL implementations to implement an ordered circular single linked list
Implement a city
string of arbitrary length) and the coordinates of the city expressed as integer x and y coordinates. Your
database should allow records to be inserted, deleted by name, and searched by name. Another operation
that should be supported is to print all records within a given distance of a specified point/coordinate.
The order of cities should be alphabetically by city name. Implement the database using both: an arraybased list implementation, and a circular single linked list implementation.
Use may the following node, SLL implementations to implement an ordered circular single linked list
Step by step
Solved in 4 steps with 7 images