Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

You are to write some basic classes in Java. You are to implement Game.java and MainTest.java classes. Each Game object will represent information about a

You are to write some basic classes in Java. You are to implement Game.java and MainTest.java classes. Each Game object will represent information about a specific game that is for sale. Essential data should include:

  • Platform
  • Name
  • Release Date
  • Developer
  • Genre
  • Retail Price
  • Rating

You must implement the complete class, including data members and methods. You must implement:

  • Constructors
  • Getters and Setters
  • printGame() To print out any game object. Example output:
PC Cyberpunk 2077 12/10/2020 CD Projekt Red Studio Action RPG, Role-Playing $59.99 M Create a new class called Inventory.java that will keep track of all the Game inventory. The Inventory class will maintain a list of games that are available for sale. Available operations are as below.
  • Constructor
  • void add(Game)
  • void remove(Game)
  • Game findCheapestGame()
  • Game findMostHighlyRatedGame()
  • void printAveragePriceOfAllGames()
  • Create a new class called Store.java that maintains an inventory of games. The Store class has a method that loads the inventory from the web with the following method signature:

  • void loadInventoryFromWeb(String url)
  • Create a csv file that describes the current inventory and use the loadInventoryFromWeb() method to populate the inventory. Each line in the csv file describes the relevant information of a game. You will need to parse this data and load it to the inventory of the store. After loading the inventory with the data, you will verify that the inventory has been loaded correctly by using the following methods in the Inventory class.
  • Vehicle findCheapestVehicle()
  • Vehicle findMostExpensiveVehicle()
  • double getAveragePriceOfAllVehicles()

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Machine Learning And Knowledge Discovery In Databases European Conference Ecml Pkdd 2015 Porto Portugal September 7 11 2015 Proceedings Part 3 Lnai 9286

Authors: Albert Bifet ,Michael May ,Bianca Zadrozny ,Ricard Gavalda ,Dino Pedreschi ,Francesco Bonchi ,Jaime Cardoso ,Myra Spiliopoulou

1st Edition

3319234609, 978-3319234601

More Books

Students also viewed these Databases questions

Question

What is focal length? Explain with a diagram and give an example.

Answered: 1 week ago

Question

What is physics and how does it apply in daily life?

Answered: 1 week ago

Question

What is the relation of physical mathematics with examples?

Answered: 1 week ago