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

  Recursive factorial program

Write a class Array that encapsulates an array and provides bounds-checked access. Create a recursive factorial program that prompts the user for an integer N and writes out a series of equations representing the calculation of N!.

  Hunt the wumpus game

Reprot on Hunt the Wumpus Game has Source Code listing, screen captures and UML design here and also, may include Javadoc source here.

  Create a gui interface

Create GUI Interface in java programing with these function: Sort by last name and print all employees info, Sort by job title and print all employees info, Sort by weekly salary and print all employees info, search by job title and print that emp..

  Plot pois on a graph

Write a JAVA program that would get the locations of all the POIs from the file and plot them on a map.

  Write a university grading system in java

University grading system maintains number of tables to store, retrieve and manipulate student marks. Write a JAVA program that would simulate a number of cars.

  Wolves and sheep: design a game

This project is designed a game in java. you choose whether you'd like to write a wolf or a sheep agent. Then, you are assigned to either a "sheep" or a "wolf" team.

  Build a graphical user interface for displaying the image

Build a graphical user interface for displaying the image groups (= cluster) in JMJRST. Design and implement using a Swing interface.

  Determine the day of the week for new year''s day

This assignment contains a java project. Project evaluates the day of the week for New Year's Day.

  Write a java windowed application

Write a Java windowed application to do online quiz on general knowledge and the application also displays the quiz result.

  Input pairs of natural numbers

Java program to input pairs of natural numbers.

  Create classes implement java interface

Interface that contains a generic type. Create two classes that implement this interface.

  Java class, array, link list , generic class

These 14 questions covers java class, Array, link list , generic class.

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