Chat with us, powered by LiveChat Menu Loop and Monkey Intake - Wridemy

Menu Loop and Monkey Intake

Menu Loop and Monkey Intake

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.

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.

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

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 takes all values for the attributes and sets them. Refer to the constructor in the Dog class for an example.

Include accessors and mutators for all implemented attributes.

In the Driver.java class, 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

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.

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 intakeNewMonkey() 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 initializeMonkeyList() method.

Finally, you will implement the intakeNewMonkey() method in the Driver.java class. Your completed method should do the following:

Prompt the user for input.

Set data for all attributes based on user input.

Add the newly instantiated monkey to an ArrayList.

Our website has a team of professional writers who can help you write any of your homework. They will write your papers from scratch. We also have a team of editors just to make sure all papers are of HIGH QUALITY & PLAGIARISM FREE. To make an Order you only need to click Ask A Question and we will direct you to our Order Page at WriteDemy. Then fill Our Order Form with all your assignment instructions. Select your deadline and pay for your paper. You will get it few hours before your set deadline.

Fill in all the assignment paper details that are required in the order form with the standard information being the page count, deadline, academic level and type of paper. It is advisable to have this information at hand so that you can quickly fill in the necessary information needed in the form for the essay writer to be immediately assigned to your writing project. Make payment for the custom essay order to enable us to assign a suitable writer to your order. Payments are made through Paypal on a secured billing page. Finally, sit back and relax.

Do you need an answer to this or any other questions?

About Wridemy

We are a professional paper writing website. If you have searched a question and bumped into our website just know you are in the right place to get help in your coursework. We offer HIGH QUALITY & PLAGIARISM FREE Papers.

How It Works

To make an Order you only need to click on “Place Order” and we will direct you to our Order Page. Fill Our Order Form with all your assignment instructions. Select your deadline and pay for your paper. You will get it few hours before your set deadline.

Are there Discounts?

All new clients are eligible for 20% off in their first Order. Our payment method is safe and secure.

Hire a tutor today CLICK HERE to make your first order