Question: Directions Your team lead has given you a specification document detailing Grazioso Salvare s software needs. Other members of the Global Rain development team have

Directions
Your team lead has given you a specification document detailing Grazioso Salvares software needs. Other members of the Global Rain development team have already started creating the RescueAnimal.java, Dog.java, and Driver.java class files. Your team lead has asked you to modify the existing Driver.java class and create a Monkey.java class as your contribution to the team.
Required Pre-work
To gain a clear understanding of the clients requirements, review the Grazioso Salvare Specification Document, located 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.
Open the Virtual Lab by clicking on the link in the Virtual Lab Access module. Then open the Eclipse IDE. Follow the Uploading Files to Eclipse Tutorial to upload the Grazioso.zip files into Eclipse. Both the tutorial and the zipped folder are located in the Supporting Materials section. The Grazioso.zip folder contains three class files. Once you upload the files, compile the code. Although the program is not complete, it should compile without error.
Read through the code for each class that you have been given. This will help you understand what code has been created and what code must be modified or created to meet the requirements.
Once you have completed the pre-work, you are ready to begin your assigned tasks.
Monkey.java Class
Your team lead reminded you to demonstrate industry standard best practices in all of your code to ensure clarity, consistency, and efficiency among all software developers working on the program. In your code for each class, be sure to include the following:
In-line comments that denote your changes and briefly describe the functionality of each method or element of the class
Appropriate variable and method naming conventions
In a new Java file, 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 to meet the specifications
Include a constructor. You may use a default constructor. To score exemplary on this criterion, you must include the more detailed constructor that initializes values for all attributes. Refer to the constructor in the Dog class for an example.
Include accessors and mutators for all implemented attributes
Driver.java Class
In this class, you will modify and implement several different methods. You will need to refer back to the code from the other classes to properly implement these methods.
As a reminder, you must demonstrate industry standard best practices, such as in-line comments to denote changes and describe functionality and appropriate naming conventions throughout the code that you create or modify for this class.
First, you will modify the main() method. In main(), you must create a menu loop that does the following:
Displays the menu by calling the displayMenu() method. This method is in the Driver.java class.
Prompts the user for input
Includes input validation. If the user inputs a value not on the menu, the program should print an error message.
Takes the appropriate action based on the value that the user entered.
IMPORTANT: In the Module Five milestone, you were asked to create a menu loop but were not required to include input validation. Be sure to include input validation for your Project Two submission.
Next, you will complete the intakeNewDog() method. Your completed method should do the following:
Prompt the user for input
Include input validation. Note: The required input validation has already been included in the starter code; be sure to review it.
Set data for all attributes based on user input
Add the newly instantiated dog to an ArrayList
Hint: Remember to refer to the accessors and mutators in the Dog and RescueAnimal classes as you create this method.
Next, you will implement the intakeNewMonkey() method. Before you do this, you will need to create a monkey ArrayList in the Driver.java class. Refer to the dog ArrayList for an example. Then, begin implementing the intakeNewMonkey() method. Your completed method should do the following:
Prompt the user for input
Include input validation for the monkeys name and species type. If the user enters an invalid option, the program should print an error message.
Set data for all attributes based on user input
Add the newly instantiated monkey to an ArrayList
Hint: Remember to refer to the accessors and mutators in your Monkey and RescueAnimal classes as you create this method.
IMPORTANT: In the Module Five milestone, you began implementing this method but were not required to include input validation. Be sure to include input validation for your Project Two submission.
Next, you will implement the reserveAnimal() method. Your completed method should do the following:
Prompt the user for input. The user should enter their desired animal type and country.
Directions Your team lead has given you a

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 Programming Questions!