Question: I. Part 1 - Designing Classes Using Python ( 4 0 pts ) Description For this part, your goal is to apply various concepts for
I. Part Designing Classes Using Python pts
Description
For this part, your goal is to apply various concepts for designing classes and creating proper parent child relationships to simulate real world scenarios.
This part is designed to measure and assess your ability to:
Apply objectoriented programming techniques.
Use the concept of inheritance.
Produce quality code, including the way entities are modelled and how modelling represents the real world effectively. You will also be graded on how much code reuse is facilitated by your design.
Instructions
For this assignment, you will create an ecosystem that represents a zoo. The zoo will have a variety of animals and birds. These animals and birds can be organized as shown in the
Each of these animal groups have some special characteristics that get passed on to the child. The child along with the characteristics derived from the parent will also have their own characteristics. This zoo can save a fixed number of animals and birds and is open to see the animals in them.
Design and represent the animals and birds in the above diagram as classes in python. Design a zoo class to house these animals and birds. These classes should obey the requirements below.
Requirements:
Each animal has some common features like the number of hands and legs.
a Felines and canines have legs and no hands.
Each bird has a number of legs and number of wings as a feature.
a Flight birds have legs and wings.
Represent these features as attributes.
The characteristic for each of the animals are as follows:
a Felines belong to the cat family.
b Canines belong to the dog family.
c Tigers can roar and are lethal predators.
d Wild cats can climb trees.
e Wolves hunt in packs and have a leader.
f Flight birds fly and hunt for food.
g Eagles fly extremely high and can see their prey from high up in the sky
Add the characteristics of animals and birds to their respective classes.
Create a zoo that can have animals and bird.
Zoo should be able to add only an animal or a bird if it is not full.
Zoo should be able to provide a way to look at all the animalsbirds it has.
Looking at animalsbirds means you should be able to get all the features and characteristics of them.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
