1. GSPLZ
You've recently quit the school library job because you get bored of the routines. It so happens that the GSPLZ (George Sun's Python Learning Zoo) has an opening for the development of a software system called ZOO (Zoo Objective Organiser).
The GSPLZ gives you a manual of how animals are classified in the zoo.
They know that you can program Python. They want you to first build this classification into your program by creating a hierarchy of Classes. In addition to the picture, they've specified:
- Each animal has a name and an age.
- Each animal can move.
- Each vertebrate can 'strechback'.
- Each vertebrate has a number of sections of their spine.
- Each fish has a number of gills.
- Each fish can 'blub'.
- Each bird can 'chirp'.
- Each bird has a feature colour.
- Each mammal can milk.
- Each amphibian has a preferred habitat.
- Each reptile can crawl.
No comments:
Post a Comment