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

profilezikoy9

 

  • 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.

 

Grading Criteria

Project and Main Class Creation

  • Create a new project in your IDE named "AnimalInfo."
  • Create a class called "AnimalInfo" as the main class for the program.
20%

Inherited Classes

  • 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.
30%

Main Menu and Functionality

  • 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.
  • When the user selects an animal, use the displayInfo() method of the appropriate class to display information about the selected animal.
30%

Source Code Mechanics

  • Code is well documented with comments demonstrating knowledge of each statement.
  • Code uses appropriate style and naming conventions.
  • Code is free of errors.
20%

    • 12 years ago
    • 20
    Answer(10)

    Purchase the answer to view it

    blurred-text
    NOT RATED

    Purchase the answer to view it

    blurred-text
    NOT RATED
    • attachment
      java_project.zip

    Purchase the answer to view it

    blurred-text
    NOT RATED
    • attachment
      animalsolution.zip

    Purchase the answer to view it

    blurred-text
    NOT RATED
    • attachment
      itsd322_unit_3_ip_assignment_3_animalinfo_answer.zip

    Purchase the answer to view it

    blurred-text
    NOT RATED
    • attachment
      itsd322_unit_3_ip_assignment_3_animalinfo_answer.zip

    Purchase the answer to view it

    blurred-text
    NOT RATED
    • attachment
      itsd322_unit_3_ip_assignment_3_animalinfo_answer.zip

    Purchase the answer to view it

    blurred-text
    NOT RATED
    • attachment
      itsd322_unit_3_ip_assignment_3_animalinfo_answer.zip

    Purchase the answer to view it

    blurred-text
    NOT RATED
    • attachment
      itsd322_unit_3_ip_assignment_3_animalinfo_answer.zip

    Purchase the answer to view it

    blurred-text
    NOT RATED
    • attachment
      itsd322_unit_3_ip_assignment_3_animalinfo_answer.zip

    Purchase the answer to view it

    blurred-text
    NOT RATED
    • attachment
      itsd322_unit_3_ip_assignment_3_animalinfo_answer.zip
    Bids(0)