Create a new project in your ide named animalinfo

Assignment Help Computer Engineering
Reference no: EM13774586

So far, 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: EM13774586

Questions Cloud

What is the molarity of an aqueous solution : What is the molarity of an aqueous solution containing 21.7 g of glucose (C6H12O6) in 1.2 L of solution?
Write a paper on the tv series prisonbreak : Write a paper on the TV series "PrisonBreak".
Provide balanced chemical equations : Describe these processes, provide balanced chemical equations for each, and detail the energetics of both. Please cite all credible sources, and avoid the use of wiki sites. Your project should be 3-5 pages in length.
Discuss the accuracy and court admissibility : Explain how behavioral interviewing and interrogation techniques can help identify deception. Discuss the accuracy and court admissibility
Create a new project in your ide named animalinfo : Create a new project in your IDE named "AnimalInfo." Create a class called "AnimalInfo" as the main class for the program.
Write an essay on positive effects of reality tv on american : Write an essay on Positive Effects of Reality TV on American Citizens.
Methods of evaluation and control for biological agents : In addition, you have been asked to include information regarding the basic exposure mechanisms for biological agents, methods of evaluation and control for biological agents, and methods of sampling for biological agents.
Discuss the nature of occupational crime : Discuss the nature of occupational crime and determine its impact on both society and you personally. Provide examples to support your response
Describe potential hazardous material interactions : What government agency and statutes/regulation(s) govern for the labeling and registration of these hazardous household products?

Reviews

Write a Review

Computer Engineering Questions & Answers

  What is the significance of optimizing the design

What is the significance of optimizing the design

  Logic programming and imperative programming

Can describe procedural language in clearly and simply - And compare other object-oriented programming, functional programming, logic programming and imperative programming.

  What ethical social and political issues arise with the use

information is data that is framed in a specific context. in this sense information is contextual data that has a level

  Boolean expression in sum of products form

Write the subsequent Boolean expression in sum of products form - Write the subsequent Boolean expression in product of sums form

  Suppose that you are on the staff of a prc legislator

assume that you are on the staff of a prc legislator. outline the arguments that you would use to support a law that

  Find the corner points that describe the optimum solution

For the Reddy Mikks model, find the corner points that describe the optimum solution for each of the subsequent objective functions:

  Questiondotties tax facility specializes in federal tax

questiondotties tax facility specializes in federal tax returns for professional clients such as physicians dentists

  How agile processes adapt to embrace

Explain the difference between change control and version control.

  You are a private computer consultant and a new client has

you are a private computer consultant and a new client has approached you about upgrading his small business network.

  Linear programming algorithm requires that a single goal or

1.operating systems can be designed to support a single user or multiple users. you can run software slowly in a batch

  What is steady-state cpi

What is steady-state CPI

  Which is true of today''s cios

The traditional set of IS responsibilities includes all of the following except.

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