Question: ****I've already created the rescue animal code I just need help with the monkey code.*** PLEASE MODIFY CODE IN JAVA please help im stuck on
****I've already created the rescue animal code I just need help with the monkey code.***
PLEASE MODIFY CODE IN JAVA please help im stuck on this
Create the Monkey class, using the information provided as a guide. The Monkey class must do the following:
- Inherit from the RescueAnimal class
- Implement all attributes with appropriate data structures
- Include accessors and mutators for all implemented attributes
We have identified the following monkey species that are eligible for our program:
Capuchin
Guenon
Macaque
Marmoset
Squirrel monkey
Tamarin
There are important data elements for monkeys in addition to what we use for dogs. These include tail length, height, body length, species, and measurements for torso, skull, and neck.
Software Requirements We desire a software application that will help us track the animals we are currently training and the animals that have been placed into service. Here are some specifics:
Ability to process requests for a rescue animal: In this case, we would receive the type of animal the customer wants and the country where the customer resides. If we have an animal in training in their country, we can reserve that animal for the customer. Ability to update any information we have on our animals Ability to see what animals we have in each phase at each location, including "intake" and "farm" Ability to add animals (intake) Ability to transfer service animals to the farm or place in-service Ability to view which animals are in-service Ability to process and receive reports from in-service agencies on the retirement or death of their rescue animal
Here is my rescue animal code:
- public class RescueAnimal {
- // Class variables
- private String name;
- private String type;
- private String gender;
- private int age;
- private float weight;
- private SimpleDateFormat acquisitionDate;
- private SimpleDateFormat statusDate;
- private String acquisitionSource;
- private Boolean reserved;
- private String trainingLocation;
- private SimpleDateFormat trainingStart;
- private SimpleDateFormat trainingEnd;
- private String trainingStatus;
- private String inServiceCountry;
- private String inServiceCity;
- private String inServiceAgency;
- private String inServicePOC;
- private String inServiceEmail;
- private String inServicePhone;
- private String inServicePostalAddress;
- // Constructor
- public RescueAnimal() {
- }
- //Getter and setter methods
- public String getName() {
- return name;
- }
- public void setName(String name) {
- this.name = name;
- }
- public String getType() {
- return type;
- }
- public void setType(String type) {
- this.type = type;
- }
- public String getGender() {
- return gender;
- }
- public void setGender(String gender) {
- this.gender = gender;
- }
- public int getAge() {
- return age;
- }
- public void setAge(int age) {
- this.age = age;
- }
- public float getWeight() {
- return weight;
- }
- public void setWeight(float weight) {
- this.weight = weight;
- }
- public SimpleDateFormat getAcquisitionDate() {
- return acquisitionDate;
- }
- public void setAcquisitionDate(SimpleDateFormat acquisitionDate) {
- this.acquisitionDate = acquisitionDate;
- }
- public SimpleDateFormat getStatusDate() {
- return statusDate;
- }
- public void setStatusDate(SimpleDateFormat statusDate) {
- this.statusDate = statusDate;
- }
- public String getAcquisitionSource() {
- return acquisitionSource;
- }
- public void setAcquisitionSource(String acquisitionSource) {
- this.acquisitionSource = acquisitionSource;
- }
- public Boolean getReserved() {
- return reserved;
- }
- public void setReserved(Boolean reserved) {
- this.reserved = reserved;
- }
- public String getTrainingLocation() {
- return trainingLocation;
- }
- public void setTrainingLocation(String trainingLocation) {
- this.trainingLocation = trainingLocation;
- }
- public SimpleDateFormat getTrainingStart() {
- return trainingStart;
- }
- public void setTrainingStart(SimpleDateFormat trainingStart) {
- this.trainingStart = trainingStart;
- }
- public SimpleDateFormat getTrainingEnd() {
- return trainingEnd;
- }
- public void setTrainingEnd(SimpleDateFormat trainingEnd) {
- this.trainingEnd = trainingEnd;
- }
- public String getTrainingStatus() {
- return trainingStatus;
- }
- public void setTrainingStatus(String trainingStatus) {
- this.trainingStatus = trainingStatus;
- }
- public String getInServiceCountry() {
- return inServiceCountry;
- }
- public void setInServiceCountry(String inServiceCountry) {
- this.inServiceCountry = inServiceCountry;
- }
- public String getInServiceCity() {
- return inServiceCity;
- }
- public void setInServiceCity(String inServiceCity) {
- this.inServiceCity = inServiceCity;
- }
- public String getInServiceAgency() {
- return inServiceAgency;
- }
- public void setInServiceAgency(String inServiceAgency) {
- this.inServiceAgency = inServiceAgency;
- }
- public String getInServicePOC() {
- return inServicePOC;
- }
- public void setInServicePOC(String inServicePOC) {
- this.inServicePOC = inServicePOC;
- }
- public String getInServiceEmail() {
- return inServiceEmail;
- }
- public void setInServiceEmail(String inServiceEmail) {
- this.inServiceEmail = inServiceEmail;
- }
- public String getInServicePhone() {
- return inServicePhone;
- }
- public void setInServicePhone(String inServicePhone) {
- this.inServicePhone = inServicePhone;
- }
- public String getInServicePostalAddress() {
- return inServicePostalAddress;
- }
- public void setInServicePostalAddress(String inServicePostalAddress) {
- this.inServicePostalAddress = inServicePostalAddress;
- }
- }
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
