Create a project called AnimalInfo

Assignment Help JAVA Programming
Reference no: EM132369375

Assignment -

Program/Main Class: AnimalInfo. This file is for the code (in the method "Main()") that will run the program, present the list, prompt for input, execute the appropriate class method, and then terminate. Note that this file may not include any information about the categories of animals or any specifics about animals. That information comes from the inheriting classes discussed below. Create a project called "AnimalInfo".

Using the method "Main()", present the user with three animals and ask them to select one to learn more about that animal. The animals in the menu must match your "inheriting classes" discussed below. When the user selects an animal from the menu, execute the "displayInfo()" method from the appropriate inheriting class. Use code comments to annotate your source code, indicating what each line of code does as well as how it works.

Parent Class: (Name to be determined.) This file is for the broad category of animals that the user can examine in your program, such as dogs, horses or fish. Your program may contain only one parent class (users will only be able to select from a single category of animals). Create a class file, naming it according to the category of animals that you've decided to use. Do NOT inherit another file/class. (Do not use the "extends" keyword in the class declaration.) Create a method in your class file called "displayInfo()". This displayInfo() method will only be executed if inheritance fails, so in displayInfo(), write code that reports to the screen that this parent class has been engaged by mistake.

For example, if executed this method will generate user-friendly text on the screen such as: "Incorrect class inheritance, please contact technical support." Use code comments to annotate your source code, indicating what each line of code does as well as how it works. Inheriting Classes: (Names to be determined.) Create three class code files that inherit from the parent class discussed above. For example, if you named your parent class "Dogs", then your inheriting class files might be "Bulldog", "Beagle" and "Poodle". (You may not use those examples for your program.) Create three class files, reflecting the animals listed in the menu that was presented to the user. Within each of these class files, declare the class so that it inherits your parent class (using the "extends" keyword). In each class, create a method called "displayInfo()" so that it will override the same method in the parent class. (This will cause text about the selected animal to appear on the screen instead of the error report you wrote for the same method in the parent class.)

The text must be a short description of the animal, such as where they live and/or their physical parameters and something interesting about them (1 paragraph of no more than 3-4 sentences). (You do not need to cite your source for this information.)

Reference no: EM132369375

Questions Cloud

Create the mathematical and computational model : Provide details on how you will create the mathematical/computational model. What language(s) will you use? Flowcharts, class diagrams,
Analyzing and visualizing data and cloud computing : Analyzing and Visualizing Data, Cloud Computing, Operational Excellence, Operations Security.
Examine the skills needed to become a corporate accountant : HI5020 - Corporate Accounting - Qualifications and experiences that employers seek from Corporate Accountants - developing a clear understanding of students
Examine your subjectivities in relation to your thoughts : A response essay must critically examine the assigned readings. Do not simply reflect on the readings, but also critically deconstruct and evaluate.
Create a project called AnimalInfo : Program/Main Class: AnimalInfo. This file is for the code (in the method "Main()") that will run the program, Create a project called AnimalInfo
Discuss the team dynamics for highly effective : Discuss the team dynamics for a highly effective or ineffective team of which you were a member. Can you explain why the team performed so well or so poorly?
Social media-cloud-based software to promote-run business : Create a 15- to 20-slide presentation on the benefits of using social media and cloud-based software to promote and run a business.
What you might do as human and social services professional : Explain what you might do as a human and social services professional to create social change by ensuring all employees have a fair and diverse work.
Protect user information on windows system : Discuss how an IPS/IDS can protect user information on a Windows system or any computing device that is connect to a network.

Reviews

Write a Review

JAVA Programming Questions & Answers

  Java shape program console

Program is adequately documented. It's comments identifies its name, purpose, author and date.Throughout the code, comments and/or relevant component names should attempt to make theprogram understandable.

  How to search an array for a specified value

Prepare a flowchart, and provide the corresponding pseudocode to show how to search an array for a specified value using the sequential search algorithm.

  What is a character class in a pattern

What is a character class in a pattern? What are the predefined character classes, and what do they mean? What are symbolic quantifiers, and what do they mean?

  Client server chat system

Threading and GUI design using Java's network library, threading system, and swing user interlace libraries to implement a basic chat client and saver system. Thc system will allow multiple. remote users to send and receive messages across the net..

  Write a method called writenums

Write a method called writeNums that takes an integer n as a parameter and prints to the console the first n integers starting with 1 in sequential order, separated by commas. For example, consider the

  Write java program that generates three-digit random number

Write a Java application that generates a 3-digit random number 100 times. Display the output for each of the generated numbers and the sum of all 100 numbers.

  Write the definition of a method power

Write the definition of a method powerTo, which receives two parameters . The first is a double and the second is an int . The method returns adouble.

  Design and implement a java program that will gather info

Design and implement a Java program that will gather a user's first name, middle initial, lastname, age in years, and 3 lucky numbers. The program should output the following based on the user's input

  How it makes the device - hardware better

Look beyond your computer and other devices used with your computer. what does the software provide? Explain how it makes the device/hardware better?

  Classes that have been defined using inheritance

Imagine that you want to add a non-static method to the Yee class. It should be called yow(), it should take no parameters, and it should return the sum of the

  Create a javafx application named runningman

Create a JavaFX application named RunningMan.java to animate a man running laps. The man should run from left to right until the edge of the window is reached.

  Create a page that allow the user to change their password

The database will contain a table: Create a page that allow the user to change their password. Then you should login to see if the change took effect.

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