Question: IN JAVA Video Game Database Objective: Write a program in which the user loads and searches a database of video games. Users should have the
IN JAVA
Video Game Database
Objective:
Write a program in which the user loads and searches a database of video games. Users should have the option to search games by their title, their console, or both based on partial matches. In addition, the user can use the wildcard to indicate they want all results from either titles or consoles. The user should have the option to both print the results of the search via the console or print the results to a file.
Requirements:
Functionality.
o No Syntax, Major RunTime, or Major Logic Errors.
Code that cannot be compiled due to syntax errors is nonfunctional code and will receive no points for this entire section.
Code that cannot be executed or tested due to major runtime or logic errors is nonfunctional code and will receive no points for this entire section.
o Use only a Generic Linked List of your own creation.
Other built in types like ArrayLists, LinkedLists, etc will receive no points for this entire section.
You may add, remove, or modify functionality in your generic linked list.
o Clear and EasyToUse Interface.
Users should easily understand what the program does and how to use it
Users should be prompted for input and should be able to enter data easily.
Users should be presented with output after major functions, operations, or calculations.
Users should be able to perform any number of the required functions. In addition, users should be able to choose when to terminate the program.
All the above must apply for full credit.
o Reading a Video Game Collection File.
The program must read from a Video Game Collection File and using that information it must populate a linked list of games.
The user must be able to provide the name of the file.
Each game in the file has a name and console separated by and end line
Each games name and console are separated by a tab t
The Video Game Collection File format is:
t
t
The program should ignore items that do not strictly follow the previously stated format.
Example Game Collection File
The user must be able to load a different game collection file at any time, and this should replace the information previously stored in the linked list.
All the above must apply for full credit.
o Searching for Games.
The program must be able to search for games based on both its name and its console.
The search results must ignore case and allow partial matches.
The program must allow users to input the wildcard character, to return all matches for either the name, console, or both.
For Example, lets assume the game collection file has the following entries,
Mega MantNintendo Entertainment System
Mega Man tNintendo Entertainment System
Mega Man XtSuper Nintendo Entertainment System
Sonic the HedgehogtSega Genesis
Super Mario Bros.tNintendo Entertainment System
Assuming the file has been loaded correctly, and the information has been loaded into a linked list of games correctly, then if the user enters, mega for the game title and for the game console, then the program searches through the linked lists and prints the results,
Mega MantNintendo Entertainment System
Mega Man tNintendo Entertainment System
Mega Man XtSuper Nintendo Entertainment System
Another example is if the user enters for the game title and Nintendo for the game console, then the program prints the results,
Mega MantNintendo Entertainment System
Mega Man tNintendo Entertainment System
Mega Man XtSuper Nintendo Entertainment System
Super Mario Bros.tNintendo Entertainment System
Note that t and
will not be visibly printed to either the console or a new file and is only used in this example to demonstrate the file format.
All the above must apply for full credit.
o Printing Search Results.
After every search, the program must print the results of the search to the console.
The user must have the option to print the results to a file. They must be able to specify the files name and must be able to either overwrite a previous search results file or append the search to an existing search results file.
HINT: It may be a good idea to create another data structure, like another linked list, that contains the search results.
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
