Java program that allows the user to select

Assignment Help Basic Computer Science
Reference no: EM131163654

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.

Reference no: EM131163654

Questions Cloud

Explain how the techniques and tools can be utilized : Explain the importance of MIS in relation to data-driven decisions. Describe the techniques and tools that can be utilized to manage the data. Include at least 2 effective techniques and 3 effective tools.
Meaning that a classifier predicts that the customer : Suppose that you are working for a phone company that wants to predict churn. Churn is when customers cancel their subscriptions. Let x designate a customer, let actual be a binary random variable meaning that the customer actually churns, and let..
Explain why lancôme with- drew from the men skincare market : Using the demographic and psychographic information provided in the case, describe the traits that would make the most desirable target market for a line of men's grooming products if Lancôme were to reenter this market. Explain.
Attribute highest information gain : Which attribute has the highest information gain? Justify your answer. Use Gini Index (1 - p12 - p22) as measurement criteria.
Java program that allows the user to select : 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.
Why is important to complete a stakeholder needs assessment : Why is it important to complete a stakeholder needs assessment when planning to develop a technology-enabled learning or communication solution
Find the values of and for which both fx and fy are zero : A jet of liquid of density P and area A strikes a block and splits into two jets, as in Fig. P3.75. Assume the same velocity V for all three jets. The upper jet exits at an angle θ and area A. The lower jet is turned 90° downward.
Description of the components of the marketing manager role : Appreciation of the significance of the concept of integrated marketing communications (IMC) and its impact on marketing management. Identification of the elements of the promotion mix and the pros and cons of each element.
Describe the benefits and disadvantages of business analytic : Describe the benefits and disadvantages of business analytics, as well as how the organization can be proactive in addressing any disadvantages. Include at least 3 benefits and disadvantages.

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Identifies the cost of computer

identifies the cost of computer components to configure a computer system (including all peripheral devices where needed) for use in one of the following four situations:

  Input devices

Compare how the gestures data is generated and represented for interpretation in each of the following input devices. In your comparison, consider the data formats (radio waves, electrical signal, sound, etc.), device drivers, operating systems suppo..

  Cores on computer systems

Assignment : Cores on Computer Systems:  Differentiate between multiprocessor systems and many-core systems in terms of power efficiency, cost benefit analysis, instructions processing efficiency, and packaging form factors.

  Prepare an annual budget in an excel spreadsheet

Prepare working solutions in Excel that will manage the annual budget

  Write a research paper in relation to a software design

Research paper in relation to a Software Design related topic

  Describe the forest, domain, ou, and trust configuration

Describe the forest, domain, OU, and trust configuration for Bluesky. Include a chart or diagram of the current configuration. Currently Bluesky has a single domain and default OU structure.

  Construct a truth table for the boolean expression

Construct a truth table for the Boolean expressions ABC + A'B'C' ABC + AB'C' + A'B'C' A(BC' + B'C)

  Evaluate the cost of materials

Evaluate the cost of materials

  The marie simulator

Depending on how comfortable you are with using the MARIE simulator after reading

  What is the main advantage of using master pages

What is the main advantage of using master pages. Explain the purpose and advantage of using styles.

  Describe the three fundamental models of distributed systems

Explain the two approaches to packet delivery by the network layer in Distributed Systems. Describe the three fundamental models of Distributed Systems

  Distinguish between caching and buffering

Distinguish between caching and buffering The failure model defines the ways in which failure may occur in order to provide an understanding of the effects of failure. Give one type of failure with a brief description of the failure

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