Question: Java You have been asked to write an application to help manage a pet store. Below are a list of requirements that the pet store
Java You have been asked to write an application to help manage a pet store. Below are a list of requirements that the pet store have, as well as constraints that your boss have specified for any software developed.
Object Serialization should be used to save data.
The pet store must service at least three regular kinds of pets (e.g dog, cat, guinea pig), with a total of five pets served (the other two dont have to be regular)
The pet store interface must feature a GUI with a list of current animals for sale. Each animal for sale should specify the animals name, species, and any other pertinent details:
Example: Charlie the Cat is 5 years old. He has black fur.
All Pets must belong to an inheritance hierarchy of some kind. An easy way to do this is to make a Pet class from which all kinds of Pets inherit
The GUI must support the following operations
Load Inventory load a file of pet data to display in the store (let the user specify a file name)
Save Inventory save the current petstore data to a file (let the user specify a file name)
Add a pet Prompt the user for information to add a pet to the list of pets
Sell a pet Sell the pet currently selected in a JList on a GUI
It is suggested saving and loading inventory go into a File menu
The application should use polymorphism that is, all lists should be lists of Pets (or Animals or whatever you call the class), rather than a list of type Dog, Cat, etc.
The application should feature background music ideally of tiny file size that is toggled with a CheckBoxMenuItem
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
