Question: RescueAnimal.java Class File Modify the RescueAnimal.java class file in accordance with the requirements of the specification document. Be sure to include in-line comments that explicitly

RescueAnimal.java Class File Modify the RescueAnimal.java class file in accordance with the requirements of the specification document. Be sure to include in-line comments that explicitly identify the changes you made as well as describe the functionality of the code.

Monkey.java Class File Create a Monkey.java class file that meets the requirements laid out in the specification document. Be sure to include in-line comments that explicitly identify the changes you made as well as describe the functionality of the code.

Driver.java Class File Modify the Driver.java class file in accordance with the requirements of the specification document. Be sure to include in-line comments that explicitly identify the changes you made as well as describe the functionality of the code.

Dog.java Class File Submit the Dog.java class file, even though you were not required to make changes to it for this project.

System Specification Document

Grazioso Salvare is a rescue animal training company that was established in 1965. We have locations in Chile, Greece, Japan, Madagascar, Singapore, South Korea, Turkey, the United Kingdom, and the United States. We have trained thousands of dogs as rescue animals and are starting to train monkeys as well.

Our Process

We obtain dogs from local breeders and animal shelters. Each dog goes through a six- to nine- month training regimen before they are put into service. Grazioso Salvare uses the term service to indicate that an animal has been provided to a client. Once put into service, the animals are considered rescue animals. A rescue animal, sometimes referred to as a search and rescue animal, is trained to rescue other animals or humans from difficult (or even life- threatening) situations. Part of our process is to record and track several data points about the rescue animals.

Dogs are given the status of intake before training starts. Once in training, they move through a set of five rigorous phases: Phase I, Phase II, Phase III, Phase IV, and Phase V. While in training, a dog is given the status of its current training phase (e.g., Phase I). When a dog graduates from training, it is given the status of in service and is eligible for use by clients. If a dog does not successfully make it through training, it is given the status of farm, indicating that it will live a life of leisure on a Grazioso Salvare farm. We currently have a farm at each of our training facilities, so there is no need to relocate animals.

Our Vision

In recent years, law enforcement agencies from several countries have expressed an interest in obtaining and training rescue animals that are more capable than a traditional rescue dog. Though dogs have proven very capable, recent research indicates that primates have higher levels of attention and greater potential to perform rescue functions. To support this demand, we started training monkeys to become rescue animals. We currently have 19 monkeys of various species in the training pipeline. To date, no monkeys have been put into service as rescue animals.

The Animals

Through years of experience, we have narrowed the list of dog breeds eligible for rescue training to the following:

  • American pit bull terrier

  • Beagle

  • Belgian Malinois

  • Border collie

  • Bloodhound

  • Coonhound

  • English springer spaniel

  • German shepherd

  • German shorthaired pointer

  • Golden retriever

  • Labrador retriever

  • Nova Scotia duck tolling retriever

  • Rough collie

  • Smooth collie

    When we acquire a dog, we record the breed, gender, age, weight, date, and the location where we obtained them. There is usually a short lag time between when we acquire a dog and when they start training, which we document as well. Additionally, we track graduation dates, dates dogs are placed into service, and details about the dogs in-service placement (agency, city, country, and name, email address, phone number, and mailing address for the agencys point of contact).

Special Note on Monkeys

As we explore the use of monkeys as service animals, we want our system to support monkey tracking as well as dog tracking. 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

  • public class Dog extends RescueAnimal {

    // Instance variable

    public String breed;

    // Constructor

    public Dog() {

    }

    // Accessor Method

    public String getBreed() {

    return breed;

    }

    // Mutator Method

    public void setBreed(String dogBreed) {

    breed = dogBreed;

    }

    }

  • public class Driver {

    public static void main(String[] args) {

    // Instance variables

    // Create New Dog

    // Create New Monkey

    // Method to process request for a rescue animal

  • import java.text.SimpleDateFormat;

    public class RescueAnimal {

    // Instance 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() {

    }

    // Add Accessor Methods here

    // Add Mutator Methods here

    }

evertthing is in their to create multiple class using java.

Directions

Grazioso Salvare has provided you with a specification document detailing its software needs. Other members of the Global Rain development team have started creating the RescueAnimal.java, Dog.java, and Driver.java class files. Your team lead has asked you to modify the existing classes and create a Monkey.java class as your contribution to the team.

  1. To gain a clear understanding of the clients software requirements, review the Grazioso Salvare specification document in the Supporting Materials section. As you read, pay close attention to the attributes and methods that you will need to implement into the program.
  1. Open the Virtual Lab by clicking on the link in the Virtual Lab Access module. Then open your IDE. Follow the IDE tutorial in the Supporting Materials section to upload Grazioso.zip into your IDE. This zipped folder contains three class files. Once you upload the files, compile the code. Although the program is not complete, it will compile without error.
  1. Read through the code for each class. This will help you understand what code has been created and what code must be modified or created to meet the software requirements.
  1. Before you begin modifying and creating classes, your team lead reminds you to demonstrate industry standard best practices in all your code to ensure clarity, consistency, and efficiency among all software developers working on the program. This includes ensuring the following:
    • In-line comments denote your changes and briefly describe the functionality of each method or element of the class
    • Appropriate variable and method naming conventions are used throughout your code
  1. Once you have completed your pre-work, you are ready to begin your assigned tasks. To start, modify the RescueAnimal.java class file by adding accessor and mutator methods for each instance variable.
  1. Create the Monkey class, using the specification document 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
  1. Select a method from the Software Requirements section of Grazioso Salvares specification document. Using the selected method, modify the Driver.java class file to do the following:
    • Implement the method you have chosen
    • Add attributes, as needed, to support the required functionality

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!