Overview
Nearly every Java application involves multiple classes. As you have learned, designing a program around classes and objects is a key feature of object-oriented programming and provides many benefits, such as more readable and maintainable code. However, it is not enough to just have multiple classes. You also need to make sure that these classes can work together within a program. This involves making sure that any relationships, such as inheritance, are properly implemented in the code. It also involves having a main() method, usually located in a special class called the ‘Driver class, that runs the program.
In this assignment, you will gain experience putting together a multiple-class program by creating a class that inherits from another (existing) class, and modifying or implementing methods in the Driver class. This milestone will also give you the opportunity to begin coding a part of the solution for Project Two. This will allow you to get feedback on your work before you complete the full project in Module Seven.
Prompt
1. To gain a clear understanding of the clients requirements, review the Grazioso Salvare Specification Document. As you read, pay close attention to the attributes and methods that you will need to implement into the program.
2. 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 folder into Eclipse. The Grazioso.zip folder contains three starter code files: Driver.java. RescueAnimal.java. and Dog.java. Once you have uploaded the files, compile the code. Although the program is not complete, it should compile without error.
3. 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.
4. You have been asked to demonstrate industry standard best practices in all the code that you create 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 o Appropriate variable and method naming conventions
* 5. In a new Java file, create the Monkey class, using the specification document as a guide. The Monkey class must do the following:
o Inherit from the RescueAnimal class, o Implement all attributes to meet the specifications.
o Include a constructor. You may use a default constructor. To score ‘exemplary’ on this criterion, you must include the more detailed constructor that takes all values for the attributes and sets them. Refer to the constructor in the Dog class for an example, o Include accessors and mutators for all implemented attributes.
6. In the Driver.java class, modify the main method. In mainO. you must create a menu loop that does the following:
o Displays the menu by calling the displayMenu method. This method is in the Driver.java class.
° Prompts the user for input
o Takes the appropriate action based on the value that the user entered
IMPORTANT: You do not need to complete all of the methods included in the menu for this milestone. Simple placeholder print statements for these methods have been included in the starter code so that you can test your menu functionality.
6. Next, you will need to create a monkey ArrayList in the Driver.java class. Refer to the dog ArrayList, which is included right before main(). as an example. Creating this ArrayList is necessary for the intakeNewMonkeyO method, which you will implement in the next step. Though it is not required, it may be helpful to pre-populate your ArrayList with a few test monkey objects in the initializeMonkeyListO method.
7. Finally, you will implement the intakeNewMonkeyO method in the Driver.java class. Your completed method should do the following:
o Prompt the user for input, o Set data for all attributes based on user input, o Add the newly instantiated monkey to an ArrayList.
Tips: Remember to refer to the accessors and mutators in your Monkey and RescueAnimal classes as you create this method. Additionally, you should use the nextLine method of the scanner to receive the users input. Refer back to Section 1.15 in zyBooks for a refresher on how to use this method.
Guidelines for Submission
Use the Downloading Files from Eclipse Tutorial to help you download your completed class files. Be sure to submit your milestone even if you were not able to complete every part, or if your program has compiling errors. Your submission for this milestone should be the Grazioso.zip fold containing all four of the following files:
· RescueAnimal.java Class File: You were not required to make changes to this file, but you must include it as part of your submission.
· Dog.java Class File: You were not required to make changes to this file, but you must include it as part of your submission.
· Monkey.java Class File. You created this class from scratch, implementing attributes, a constructor, accessors, and mutators. You should hav included in-line comments and clear variable naming conventions.
· Driver.java Class File. You were given some starter code within this file, and were asked to modify or implement a menu loop and methods intake dogs, intake monkeys, reserve animals, and print animals. You should have included in-line comments to describe your changes.
Module Five Milestone Rubric





ITProj5
Our Service Charter
1. Professional & Expert Writers: Homework Free only hires the best. Our writers are specially selected and recruited, after which they undergo further training to perfect their skills for specialization purposes. Moreover, our writers are holders of masters and Ph.D. degrees. They have impressive academic records, besides being native English speakers.
2. Top Quality Papers: Our customers are always guaranteed of papers that exceed their expectations. All our writers have +5 years of experience. This implies that all papers are written by individuals who are experts in their fields. In addition, the quality team reviews all the papers before sending them to the customers.
3. Plagiarism-Free Papers: All papers provided by Homework Free are written from scratch. Appropriate referencing and citation of key information are followed. Plagiarism checkers are used by the Quality assurance team and our editors just to double-check that there are no instances of plagiarism.
4. Timely Delivery: Time wasted is equivalent to a failed dedication and commitment. Homework Free is known for timely delivery of any pending customer orders. Customers are well informed of the progress of their papers to ensure they keep track of what the writer is providing before the final draft is sent for grading.
5. Affordable Prices: Our prices are fairly structured to fit in all groups. Any customer willing to place their assignments with us can do so at very affordable prices. In addition, our customers enjoy regular discounts and bonuses.
6. 24/7 Customer Support: At Homework Free, we have put in place a team of experts who answer to all customer inquiries promptly. The best part is the ever-availability of the team. Customers can make inquiries anytime.
Homework Free Org
Your one stop solution for all your online studies solutions. Hire some of the world's highly rated writers to handle your writing assignments. And guess what, you don't have to break the bank.
© 2020 Homework Free Org

SERVICES OFFERED


Recent Comments