Create a new project in your ide named animalinfo

Assignment Help JAVA Programming
Reference no: EM131650745

Assignment

Details

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: EM131650745

Questions Cloud

Find number of calories and the sodium content of cereals : Cereal. A healthy cereal should be low in both calories and sodium. Data for 77 cereals were examined and judged acceptable for inference.
Discuss and provide examples of three scholarly sources : Discuss and provide examples of three scholarly sources.
How to move forward economically : Please research Venezuela for this week's DQ. Use material from our chapter readings to analyze their current situation and how to move forward economically.
Taxes on the household sector : Using the interconnection between sectors of the economy, explain the effects of imposing an increase in taxes on the household sector.
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.
Hierarchy for a management dilemma : Develop the management-research question hierarchy for a management dilemma
Test hypothesis about association between brain size and iq : Brain size. Does your IQ depend on the size of your brain? A group of female college students took a test that measured their verbal IQs.
Develop and configure server architecture : MN506 - Local Area Network (LAN) to support Windows Server and Client Environment and Increasing LAN efficiency using a Backup Domain Controller
What is the best decision based on pessimistic approach : What is the best decision based on pessimistic approach?How much (in thousands) is the average payoff if the company expands facilities?

Reviews

Write a Review

JAVA Programming Questions & Answers

  Inheritance and polymorphism

Inheritance and Polymorphism

  Java is considered to be safe from buffer overflows

Java is considered to be safe from buffer overflows. Does that make it more appropriate to use as a s development language when security is concerned? Be sure and weight all if the risks involved in product development, not just the security aspec..

  Write a java program to register students for a college

Project is for designing and developing a College Registration program. Write a Java program to register students for a college

  Servlet to find the sum of all digits of an input integer

1) Write a Web application using servlet to find the sum of all the digits of an input integer.2) Write a servlet which counts the number of digits into an integer received as parameter. Give the necessary web.xml file to deploy the servlet.

  Create a book class which stores the information

You run a small library. Ask the user to provide information for several books. The information must include the author, title and publisher of each book.

  Write java program to print strings given at command line

Write a program Average.java which just prints strings that it is given at command line, one per line. If nothing is given at command line, print "No arguments".

  Create a class called oddintegers with a main method

Create a class called OddIntegers with a main method.  Write the code that will compute the sum of the first n positive odd integers.  For example, if n is 5 you should compute 1 + 3 + 5 + 7 + 9.

  A java program where the user designates

a java program where the user designates how many games they would like to play (for example user inputs 10 games) then they play the game, if lets say there is a tie after 10 games the game continues until either the user of the computer wins by 2

  Writing an applet with graphics in this programming

writing an applet with graphics in this programming activity you will write an applet that uses graphics. you will draw

  Implement a probability calculator for the standard normal

implement a probability calculator for the standard normal distribution using GUI.

  Write a main class with a main method that tests your method

Write a Main class with a main method that tests your methods appropriately (i.e. by calling each method at least once with various inputs), and printing the results.

  Assignmentwrite a gui-based application that allows a user

assignmentwrite a gui-based application that allows a user to play a simple trivia game. the game should have 5

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