Question
I have a project I need help with. Here are the requirements. To gain a clear understanding of the client's software requirements, review the Grazioso
I have a project I need help with. Here are the requirements.
- To gain a clear understanding of the client's 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.
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 agency's 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
- 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.
- 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.
- 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
- 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.
- 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
- Select a method from the Software Requirements section of Grazioso Salvare's 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
What to Submit
To complete this project, you must submit the following:
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.
Here is what I have so far:
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;
}
}
Next file:
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
// Method(s) to update information on existing animals
// Method to display matrix of aninmals based on location and status/training phase
// Method to add animals
// Method to out process animals for the farm or in-service placement
// Method to display in-service animals
// Process reports from in-service agencies reporting death/retirement
}
}
Next file:
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
}
I still need the monkey file. Can you please help me?
Step 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