Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Java Mini-Project: (50 Points) You have been asked to write an application to help manage a pet store. Below are a list of requirements that
Java
Mini-Project: (50 Points) 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 (i.e me) have specified for any software developed Object Serialization should be used to save data (originally this was not going to be on the exam, but it is an easy way to save data, so I included it) total of five pets served (the other two don't have to be regular") for sale should specify the animal's name, species, and any other pertinent details The pet store must service at least three regular kinds of pets (e.g dog, cat, guinea pig), with a The pet store interface must feature a GUI with a list of current animals for sale. Each animal o 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 o o 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 o o 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 CheckBoxMenultem . Beyond the above details, the design of this part of the exam is up to you. Note that use of the Decorator design pattern may be useful and will definitely help in the Quality points category. Points are divided up between points for content and points for the quality of design and coding Mini-Project: (50 Points) 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 (i.e me) have specified for any software developed Object Serialization should be used to save data (originally this was not going to be on the exam, but it is an easy way to save data, so I included it) total of five pets served (the other two don't have to be regular") for sale should specify the animal's name, species, and any other pertinent details The pet store must service at least three regular kinds of pets (e.g dog, cat, guinea pig), with a The pet store interface must feature a GUI with a list of current animals for sale. Each animal o 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 o o 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 o o 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 CheckBoxMenultem . Beyond the above details, the design of this part of the exam is up to you. Note that use of the Decorator design pattern may be useful and will definitely help in the Quality points category. Points are divided up between points for content and points for the quality of design and codingStep 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