Write a program to monitor a game shop's stock in JAVA. The different games should be broken down into several classes (INHERITANCE in action). Name and a special ID will both be present in the parent game class. ID must be larger than 0, and Name cannot be left empty. PC games will have a child class with additional features for the operating system (Windows, Apple, or Linux), minimum memory needs (1 MB - 15 MB), and disk minimum requirements (10 MB - 100 MB). Video games that are played on gaming consoles will have a second child class. It will have additional attributes of platform name(Xbox or PlayStation). This can be either String or enumerated type. Consoles will also have a version number. For PlayStation, 3, 4, or 5 are valid. For Xbox, One, Series X, or Series S are valid. Finally, a third child class for mobile gaming apps will contain additional attributes for mobile device type (Apple or Android) and version number of the device. No validations required on version number for mobile devices.   You should use polymorphism and abstract methods/classes to simplify this program.   Your program will begin by reading a text file (created by you, in a format designed by you) with a minimum of two games per type (a total of six, 2 PC, 2 console, 2 apps) to create a list (think ArrayList) of the games in inventory. Display the library list in a user friendly format, ask if the user would like to find or delete a game by id number. When user is done viewing and deleting, save the changed list back to the original text file (overwriting it).

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question

Write a program to monitor a game shop's stock in JAVA. The different games should be broken down into several classes (INHERITANCE in action). Name and a special ID will both be present in the parent game class. ID must be larger than 0, and Name cannot be left empty. PC games will have a child class with additional features for the operating system (Windows, Apple, or Linux), minimum memory needs (1 MB - 15 MB), and disk minimum requirements (10 MB - 100 MB). Video games that are played on gaming consoles will have a second child class. It will have additional attributes of platform name(Xbox or PlayStation). This can be either String or enumerated type. Consoles will also have a version number. For PlayStation, 3, 4, or 5 are valid. For Xbox, One, Series X, or Series S are valid. Finally, a third child class for mobile gaming apps will contain additional attributes for mobile device type (Apple or Android) and version number of the device. No validations required on version number for mobile devices.

 

You should use polymorphism and abstract methods/classes to simplify this program.

 

Your program will begin by reading a text file (created by you, in a format designed by you) with a minimum of two games per type (a total of six, 2 PC, 2 console, 2 apps) to create a list (think ArrayList) of the games in inventory. Display the library list in a user friendly format, ask if the user would like to find or delete a game by id number. When user is done viewing and deleting, save the changed list back to the original text file (overwriting it).  

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps with 1 images

Blurred answer
Knowledge Booster
Adjacency Matrix
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education