Prepare a new project in your ide named animalinfo

Assignment Help JAVA Programming
Reference no: EM131695133

Assignment

You have learned about design and how to create a simple Java application using an IDE. Now, you are going to gain some experience writing an object-oriented program with classes, objects, inheritance, and polymorphism. These terms sound complex, but you will find they are not difficult to use. You will be drawing on all the information you have gained, and this project will require some time, so start early, and pay attention to instructions.

For this project, you will write a Java program that allows the user to select an animal from a menu and then display information about the animal.

Create a new project in your IDE named "AnimalInfo."

Create a class called "AnimalInfo" as the main class for the program.

Create a class called "Animal" with a virtual method displayInfo().

Create 3 classes inherited from Animal (one for each of your animals). Each of the inherited classes should override Animal.displayInfo() to display information about the animal. The information should just be a short description of the animal displayed to the screen.

In the AnimalInfo.main() method, display a menu allowing the user to choose 1 of 3 animals or quit the program. The menu should accept input from the user and take the appropriate action and then repeat until the user selects the option to quit. Hint: Simple menus are easiest to implement if the user selects a letter or number for each menu item.

When the user selects an animal, use the displayInfo() method of the appropriate class to display information about the selected animal.

Use comments throughout your code demonstrating your understanding of each statement of code.

Make sure the program runs correctly before submission.

Create a zip that includes your project folder and Word document, and upload it to the course portal.

Reference no: EM131695133

Questions Cloud

Difference between communication and effective communication : Describe the difference between communication and effective communication. How can a sender verify that a communication was effective?
What is the fixed cost : In the short run, capital (studios, gear) is fixed at a level of 100. What is the fixed cost? What is the variable cost as a function of output
Internal and external selection methods : Examine a minimum of three internal and external selection methods you could use to evaluate potential candidates for the strategic staffing
Explain the important characteristics of effective paralegal : Propose two (2) strategies that a paralegal could take in order to avoid the unauthorized practice of law. Provide a rationale to support your response.
Prepare a new project in your ide named animalinfo : Prepare a new project in your IDE named AnimalInfo. Create a class called AnimalInfo as the main class for the program.
Leadership strategies be implemented for mental health : Is strategic change a good idea and why. How should executive leadership strategies be implemented for mental health.
What is the slope of this function : Graph the equation Y = 7 + 8X. Assume that Y is on the vertical axis and X is on the horizontal axis. What is the slope of this function
Define human relations approach and human resource approach : Each historical perspective on motivation built on the earlier perspectives and differed from them in some ways.
Back order rate fall in the improvement zone : what it means to an organization to have the Back Order rate fall in the Improvement Zone when plotted in control charts against the actual process.

Reviews

Write a Review

JAVA Programming Questions & Answers

  Draw dashed lines

Write a class Lines containing a static method dashedLine to draw dashed lines, so it can write:

  Explains the principles of polymorphism and inheritance

You have been tasked with preparing a training document that explains the principles of polymorphism, inheritance, and encapsulation.

  How these feature desirable in modern software engineerig

Java is a portable language and being an object-oriented programming language, it also encourages component reusability. How are these features desirable in modern software engineering

  What situation or problem is that you intend to improve

what you plan to accomplish and why, include an overview of situation or organization and what situation/problem is that you intend to improve - usually 1-2 pages) Cite and support all content appropriately.

  Imagine that you have been assigned

Imagine that you have been assigned to implement a sorting program. The goal is to make this program general purpose, in that you don't want to define in advance what record or key types are used

  Prepare a demo program

Design, and implement a class that will be used in a program that simulates a combination lock. The lock has a circular knob with the numbers 0 through 39 marked on the edge, and it has a three-number combination, which we will call x,y,z.

  Mean and standard deviation using using eclipse

Java programming to calculate Mean and standard deviation using Using Eclipse.

  Write a java application using netbeans ide

Write a Java application using NetBeans Integrated Development Environment (IDE) that calculates the total annual compensation of a salesperson. Consider the following factors:A salesperson will earn a fixed salary of .A salesperson will also rece..

  Create an application for an animal-fur trimming service

create an application for an animal-fur trimming service. the business is open 15 weeks of the year from april through

  Understand the principal of remote method invocation

Understand the principal of Remote Method Invocation (RMI) - Understand the benefits and shortcomings of RMI relative to other technologies learned

  Write a helloworld program

Write a helloworld program by using Java programming language.

  Compute the area of the triangle

Compute the area of the triangle using Heron's Formula(below), in which s represents half of the perimeter of the triangle, and a,b, and c, represent the length of the three sides.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd