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

  Question regarding the maintain participant interest

Develop a 1,050- to 1,400-word overview for a training program on diversity and inclusion for your organization's first line supervisors. Include a plan for the types of exercises, roleplaying, or activities that will maintain participant interes..

  What problems are encountered when using the internet

Write a 500-word paper that explains what problems are encountered when using the Internet to carry VOIP traffic and what can be done to overcome these problems

  Construct a network diagram for the project

Construct a network diagram for the project. Calculate the scheduled completion time.

  Appropriate goal of government legislation

Do you believe that rectifying past injustices is an appropriate goal of government legislation? Why or why not?

  It auditor certifications and requirements

Use the Web to conduct research on IT Auditor Certifications. Write a report which provides and explains the following: 3 IT Auditor Certifications and Requirements

  Analyze faster processor chip result increase in performance

Analyze the following statement: "Using the faster processor chip results in corresponding increase in performance of a computer even if main memory speed remains same."

  Creation of an activity diagram

A car rental company owner calls a car insurance company. The owner gives her insurance policy number to the insurance clerk, who enters this information into the system to make sure the policy is still valid and the premium has been paid. The own..

  Find information other months of the year

After getting the input, display the number with the appropriate month, show a short description of the month sought Example: "January is the first month of the year is 31 days". Additional required to check if the user wants to find information o..

  Firm pretax cost of debt

Madison Square Stores has a $20 million bond issue outstanding that currently has a market value of $18.6 million. The bonds mature in 6.5 years and pay semiannual interest payments of $35 each. What is the firm's pretax cost of debt?

  Write a java program to compute the squares of the numbers

Write a java program to compute the squares of the numbers in the array list like 1, 2, 3, 4... up to 50.Write a java program to compute the sum of numbers and average in the array list up to 50.Write the java program to find the minimum a..

  Missing slot covers on a computer cause

Missing slot covers on a computer cause a problem to your machine, which one is it?

  Discusses six reasons why proper forensics protocols

Using at least 500 words - summarize the article. The author discusses six reasons why proper forensics protocols must be followed when collecting computer evidence - can you think of any other reasons

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