Select an animal from a menu

Assignment Help Basic Computer Science
Reference no: EM131330373

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

Questions Cloud

Write down the situation as a strategic form game : Write down this situation as a strategic-form game, where the set of players is the set of people arrested, and the utility of each player (suspect) is 10 minus the number of years he spends in jail.
Advantages and disadvantages of biometrics : 1. Not all security experts agree about the value of biometrics. What are the advantages and disadvantages of biometrics? 2. What concerns to privacy advocates have about biometrics? Do you agree or disagree with the concerns? Please explain.
Discuss about the target market : Your term project is to select either an orphan brand or a potential product and draft a proposal for a launch of the product. Your paper is to include a description of target market, measurable objectives, description of the product (if an orphan..
Find all the equilibria in mixed strategies : Find all the equilibria in mixed strategies, and all the equilibrium payoffs.- Find each player's maxmin strategy.- What strategy would you advise each player to use in the game?
Select an animal from a menu : 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.
Compute adjusted cash balance per bank for santas packaging : Using the following information, determine the adjusted cash balance per bank for Santa's Packaging on November 30. Internal control over a company's assets should include which of the following?
Protocol maps and tcp-ip addresses : Start with identifying what protocol(s) are causing the problem. What standard TCP/IP protocol is responsible for telling a computer what addresses and servers it should use to connect to the network? What application protocol maps TCP/IP addresses ..
Can you find rules that have interesting behavior : Create a SETUP button to initialize your model and a GO button to run it. In your write-up of the model, make sure to explicitly describe the rules the agents are following. Try running the model in different ways. What set of parameters gives you..
Write out the mixed extension of the game : For each of the games, where Player I is the row player and Player II is the column player:- Write out the mixed extension of the game.

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