Answered step by step
Verified Expert Solution
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
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started