For this assignment, you are going to use your search algorithms.

1. Create a folder called MostSoldGames in your Unit 8 assessments folder.

2. Create a class called Games.

a. Games will need instance variables for game, sold, publisher, console, an release date.
b. Games will need appropriate methods and constructors. Make sure to have toString() method.

3. You are to create a class called TestGames and save it as TestGames.java.

a. Make sure that you create an array called myGames. Add each game information to an array.
b. Create a method call printGames() that traverses through the array and prints out each element.
c. Create a method called findByName() that uses a binary search to see if a particular game is on the list. Be sure to have sorted your array by the name the game before calling your binary search.
d. Create a method called find ByConsole() that uses a sequential search to li all game detail for a particular console.
e. Create a method called findByRelease() that uses a sequential search to lis that game that released on a particular day.
f. Create a method called findByPublisher() that uses a sequential search to lis all the game details for a particular game publisher.
g. Create a method called findBySold() that uses a sequential search to see if a game sold more than 30,000,000 copies. Print the list that meets the criteria with all detail.

4.) All output should be formatted into nicely formatted columns.

Game # Sold Publisher Primary Console Release Date
Grand Theft Auto V 62,000,000 Rockstar Games PS3 9/17/2013
New Super Mario Bros. 29,850,000 Nintendo DS 5/15/2006
Call of Duty: Ghosts 27,770,000 Activision Xbox 360 11/5/2013
Duck Hunt 28,310,000 Nintendo NES 10/15/1985
Minecraft 28,730,000 Microsoft Game Studios Xbox 360 6/4/2013
Wii Play 28,920,000 Nintendo Wii 8/12/2007
Tetris 35,840,000 Nintendo Game Boy 6/1/1989
Wii Sports 82,650,000 Nintendo Wii 11/19/2006
Call of Duty: Black Ops II 27,660,000 Avtivision Xbox 360 11/13/2012
Super Mario Bros. 45,310,000 Nintendo NES 10/18/1985
Call of Duty: Modern Warfare 3 28,170,000 Activision Xbox 360 11/8/1985
Wii Sports Resort 32,900,000 Nintendo Wii 7/26/2009
New Super Mario Bros. Wii 28,500,000 Nintendo Wii 11/15/2009
Pokemon Red/Green/Blue Version 31,370,000 Nintendo Game Boy 9/30/1998
Mario Kart Wii 35,860,000 Nintendo Wii 4/27/2008

Academic Honesty!
It is not our intention to break the school's academic policy. Posted solutions are meant to be used as a reference and should not be submitted as is. We are not held liable for any misuse of the solutions. Please see the frequently asked questions page for further questions and inquiries.
Kindly complete the form. Please provide a valid email address and we will get back to you within 24 hours. Payment is through PayPal, Buy me a Coffee or Cryptocurrency. We are a nonprofit organization however we need funds to keep this organization operating and to be able to complete our research and development projects.