The Jungle Friends Primate Sanctuary provides a permanent home and high-quality sanctuary care for New World primates who have been cast off from the pet trade, retired from research, or confiscated by authorities. They are seeking to replace all of their paper records with computer records where they can keep track of the individual animals that are in their care. This program is such a system that can satisfy their needs.
- The Sanctuary consists of two different types of housing: Isolation is used to keep monkeys when they first arrive at the sanctuary and anytime they are receiving medical attention. Isolation consists of a series of cages each of which can house a single animal. Enclosures are much larger and can host a single troop of monkeys. Each troop consists of a single species: drill, guereza, howler, mangabey, saki, spider, squirrel, and tamarin.
- Each enclosure is configured to house a particular species of monkeys.
- Monkeys that are received by the sanctuary must first go into isolation. At this time, each individual monkey is given a name, a species designation, a sex, a size, a weight, an approximate age, and a favorite food. The choices of favorite food include eggs, fruits, insects, leaves, nuts, seeds, and tree sap.
- Monkeys that have received medical attention may be moved to an enclosure.
- The Sanctuary has room for twenty monkeys in isolation (cages) and eight enclosure spaces (one for each species of monkey).
- Produce a list for every enclosure that shows each individual monkey that is currently housed there. For each individual monkey, the list should include their name, sex, and favorite food.
- Produce an alphabetical list (by name) of all of the monkeys housed in the Sanctuary.
JAVA 11 needed. Please use the JAR file in res folder. Here is the JAR instruction https://www.jetbrains.com/help/idea/compiling-applications.html#run_packaged_jar
- Create a run configuration
- Execute the run configuration
There are three tabs: Create Monkeys, Move Monkeys, and Print Monkeys.
- Create Monkeys: enter all information and then click the button to create a new monkey
- There are only three kinds of Size: small, medium, and large
- The monkey will never die, so it will never be removed from the Sanctuary
- Each enclosure can hold monkeys as many as we want
- There is no reset Button. So We cannot reset the program except by exiting and running the program again
- Each enclosure should have a maximum capacity
- “How to Use Tabbed Panes.” How to Use Tabbed Panes (The Java™ Tutorials > Creating a GUI With Swing > Using Swing Components), https://docs.oracle.com/javase/tutorial/uiswing/components/tabbedpane.html.
- JTextField (Java Platform SE 7 ), 24 June 2020, https://docs.oracle.com/javase/7/docs/api/javax/swing/JTextField.html.
- JComboBox (Java Platform SE 7 ), 24 June 2020, https://docs.oracle.com/javase/7/docs/api/javax/swing/JComboBox.html.