The Animal Kingdom Begin by creating the inheritance structure found below, where Animal is an abstract class with an abstract method called makeSound(). This means that all the sub classes need to implement it. -abstract- Animal -name: String -latinName: String -weight: double trLound: String +makesoundi) : String Bird Mammal Reptile -iSatigrant: boolean -habitat: String -isPoisonous: boolean furColor: String -canFly: boolean -hasWinterfur: boolean -nestType: String Facts can usually by found on Wikipedia (or similar place), but here are some explanations. In Bird there is an attribute called isMigrant which defines if the bird migrates during seasons (to warmer countries). For the same class, the attribute nestīype defines where the bird is making a nest -- in a tree, on the ground, making a hole and so on. For the Reptile the attribute Habitat defines where the reptile lives, for example in water, in the desert, in mountains and so on. Make a small main that shows that the program works -- use correct and actual data. You can set data directly in your program, no need to ask the user for input. Print out some of the data, not the least the sound. Note that the different types of animals has a different way of sounding (saying, tweeting and hizzing). Below is an example of wha can be outputted: A Swedish red and white cattle says: Muuuuul A Peafowl tweets: Kaka-kaka A Comodo dragon hizzes: kshhhhhh kshhhh

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question

java program for the animal kingdom and please answer as soon as possible and upload the image of the working code but don't upload the code here 

The Animal Kingdom
Begin by creating the inheritance structure found below, where Animal is an abstract class with an abstract method called makeSound(). This means that all the sub classes
need to implement it.
"abstract-
Animal
-name: String
-latinName: String
-weight: double
tsound: String
+makeSound() : String
Bird
Mammal
Reptile
-isMigrant: boolean
-furColor: String
-habitat: String
-canfly: boolean
-hasWinterFur: boolean
-isPoisonous: boolean
-nestType: String
Facts can usually by found on Wikipedia (or similar place), but here are some explanations. In Bird there is an attribute called IsMigrant which defines if the bird migrates
during seasons (to warmer countries). For the same class, the attribute nestType defines where the bird is making a nest -- in a tree, on the ground, making a hole and so on.
For the Reptile the attribute Habitat defines where the reptile lives, for example in water, in the desert, in mountains and so on.
Make a small main that shows that the program works -- use correct and actual data. You can set data directly in your program, no need to ask the user for input. Print out
some of the data, not the least the sound. Note that the different types of animals has a different way of sounding (saying, tweeting and hizzing). Below is an example of what
can be outputted:
A Swedish red and white cattle says: Muuuuu!
A Peafowl tweets: Kaka-kaka
A Comodo dragon hizzes: kshhhhhh kshhhh
Order in the Animal Kingdom
In new package, as we want you to re-write the classes for practice, we want you to make the animals comparable. This means that we want you to implement the
Comparable interface so that the animals can be compared lexically on the latin name.
Comparable<Animal>
Animal
Store at least six animals in an ArrayList and sort it before printing out the latin name as well as: nest type for birds, fur colour for mammals and habitat for reptiles. This means
па
that you need to check each object for which class it belongs before printing out the information. An example print out is shown below:
Apteryx mantelli puts its egg in/on a whole in the ground
Bos taurus has a fur that is red and white
Chelonia mydas lives in the sea
Crocodilus niloticus lives in fresh water
Panthera tigris has a fur that is yellow and black
Pavo cristatus puts its egg in/on a whole in the ground
Transcribed Image Text:The Animal Kingdom Begin by creating the inheritance structure found below, where Animal is an abstract class with an abstract method called makeSound(). This means that all the sub classes need to implement it. "abstract- Animal -name: String -latinName: String -weight: double tsound: String +makeSound() : String Bird Mammal Reptile -isMigrant: boolean -furColor: String -habitat: String -canfly: boolean -hasWinterFur: boolean -isPoisonous: boolean -nestType: String Facts can usually by found on Wikipedia (or similar place), but here are some explanations. In Bird there is an attribute called IsMigrant which defines if the bird migrates during seasons (to warmer countries). For the same class, the attribute nestType defines where the bird is making a nest -- in a tree, on the ground, making a hole and so on. For the Reptile the attribute Habitat defines where the reptile lives, for example in water, in the desert, in mountains and so on. Make a small main that shows that the program works -- use correct and actual data. You can set data directly in your program, no need to ask the user for input. Print out some of the data, not the least the sound. Note that the different types of animals has a different way of sounding (saying, tweeting and hizzing). Below is an example of what can be outputted: A Swedish red and white cattle says: Muuuuu! A Peafowl tweets: Kaka-kaka A Comodo dragon hizzes: kshhhhhh kshhhh Order in the Animal Kingdom In new package, as we want you to re-write the classes for practice, we want you to make the animals comparable. This means that we want you to implement the Comparable interface so that the animals can be compared lexically on the latin name. Comparable<Animal> Animal Store at least six animals in an ArrayList and sort it before printing out the latin name as well as: nest type for birds, fur colour for mammals and habitat for reptiles. This means па that you need to check each object for which class it belongs before printing out the information. An example print out is shown below: Apteryx mantelli puts its egg in/on a whole in the ground Bos taurus has a fur that is red and white Chelonia mydas lives in the sea Crocodilus niloticus lives in fresh water Panthera tigris has a fur that is yellow and black Pavo cristatus puts its egg in/on a whole in the ground
Expert Solution
steps

Step by step

Solved in 4 steps with 2 images

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY