The final exam is split into two parts. 100 points will be from final programming projects and another 100 points from in-class exam, given during the regularly scheduled time: - Saturday, December 14, 6:30-9:30 p.m. in the usual classroom. Programming part is due that time.

The programming project has two parts (two separate programs):

Part A (Recursion): Programming Project number 7 on page 793 of the textbook, the Towers of Hanoi Problem.

Part B (Inheritence): Define classes that satisfy the following conditions and the hierarchy in the diagram given in the class.

Example: The program

#include ...

//missing definitions

int main( )

{

leopard a;

a.talk( );

a.xivore( );

return 0;

}

should produce an output of the following form.

animals carnovore cats leopard

leooo

carnivore