12/09/2024

Week 6 Assignments

 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. 

Animal Classification for Children: Classifying Vertebrates and  Invertebrates for Kids - FreeSchool 

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.
Please build the Python program for the ZOO that defines all the types of animals in GSPLZ as classes, with their data members and methods defined.  

No comments: