Create a new project in your ide named animalinfo

Assignment Help JAVA Programming
Reference no: EM13781689

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

Questions Cloud

Societal interests that are deemed more important to uphold : Do you think that gay individuals should have the right to marriage, or should this be restricted due to other societal interests that are deemed more important to uphold? Provide arguments and evidence/examples to justify why you think your posi..
Difference between religion and spirituality : Identify three surprising concepts that you learned about religion in this course, and explain why they surprised you.
What is the relationship between inodes and vnodes : What is the relationship between inodes and vnodes - In a multi-level indexed file system that has 1K blocks what is the maximum file size if the i-nodes contain 8 direct entries, one single and one double indirect entry each?
Unsold papers are trashed with no salvage value : A newspaper boy is trying to perfect his business in order to maximize the money he can save for a new car. Daily paper sales are normally distributed, with a mean of 100 and standard deviation of 10. He sells papers for $0.50 and pays $0.30 for them..
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.
Create a portfolio on american exceptionalism : Create a portfolio on American Exceptionalism that is 7-14 pages long. Also include cover page, abstract, conclusion and references. All works cited should be turabian
Assignment on influencing behavior : In this assignment, you will explore in detail one theory managers can use to influence the behaviors of their teams and individuals.
Write brief explanation on final brilliance of the framers : Explain each terms/concepts listed- The difference between Propositions 22 & 8, Final Brilliance of the Framers and Selective Incorporation and the Fourteenth Amendment
Neurological structures and importance of emotions : What is the difference between feelings and emotions in terms of its neurological structures and cognitive functions. How does the work of Damasio and Ledoux question the usual relationship between reasoning and emotions (or feelings).

Reviews

Write a Review

JAVA Programming Questions & Answers

  Java program that will prompt the user to input a file

Write a Java program that will prompt the user to input a file (document) in order to count the frequency of each word. This program will display the frequency of each word sorted alphabetically or by frequency (depending on the preference of the use..

  What would be an incorrect way of writing this equation

Jim develops 5 Java applications a year. Joe develops 10 Java applications a year. Jim gets paid $5000.00 per application, but Joe gets paid $10000.00 per application.

  Design a java application to carry out additions

You are to design a Java application to carry out additions and subtractions for numbers of any length - You are not allowed to convert these strings to numbers before the operation.

  You must also do the work of sorting

You must also do the work of sorting in the method. You cannot just call another library method. Use loops to show the data in the original array as well as the repopulated array in ascending order.

  Problem related to eclips

Goals: 1) Be able to work with individual bits in java. 2) Understand the serializable interface. 3) Understand the comparable interface.

  What is an illustration of a javascriptreg framework in the

what is an example of a javascriptreg framework? in the framework you have described what is an example of an

  Write a point class that represents points on an x y axis

write a point class that represents points on an x y axis. the data members should be doubles x and y plus an int value

  Create a driver class with a main method

Create a driver class with a main method that creates a course, adds several students, prints a roll, and prints the overall course test average

  Write a loop that will print out the value

Given the subsequent code segment that reads in a String str - Write a loop that will print out the value entered into str in reverse.

  Most of the companies use virtualization to make test

write a 200- to 300-word short-answer response to the following many companies use virtualization to create test

  Specify, design, and implement a class

Specify, design, and implement a class that can 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.

  Write the definitions of the methods to implement operations

Calculate and return the day by adding certain days to the current day. For example, if the current day is Monday and we add four days, the day to be returned is Friday. Similarly, if today is Tuesday and we add 13 days, the day to be returned i..

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