The following will need to be completed in C++ I will need it completed no later than 2/15/04. + Write a program that places a cat into a pen, which can hold up to seven cats, each time a key (e.g. Enter key) is pressed. + Each cat is an object instantiated from class Cat??"defined in file cats.h + Each cat object, when dynamically instantiated, randomly choose a fur color (black, gray, or brown), and eye color (green, blue, or brown) and a hair length (short or long). + Provide “get?? and “set?? methods for these attributes, + Carefully consider which “get?? and “set?? methods should be public and which should be private??"all member functions are defined in [login to view URL] Certain combinations of cats result in fights breaking out: + if the number of gray cats exceeds the number of brown cats, the gray cats fight with the brown cats. + A fight also breaks out if at least one black cat with green eyes and at least one black cat with blue eyes are in the pen with exactly one black cat with brown eyes. Write a nonmember function named "check" that determines if a fight has broken out. Hints: + Read the problem description carefully. + Recall that if the number of gray cats exceeds the number of brow cats, the gray cats fight with brown cats. + The cats do not fight if the number of brown cats exceeds the number of gray cats. + Also notes that black cats fight if exactly one black cat with brown eyes is put in the pen with at least one black cat with green eyes and at least one black cat with blue eyes. + If the pen contains more than one black cat with brown eyes, the black cats will not fight. Use: //Cats.h #ifndef CATS_H #define CATS_H class Cat { public: Cat(); const char *getFurColor() const; const char *getHairLength() const; const char *getEyeColor() const; private: void setFurColor(); void setHairLength(); void setEyeColor(); char *furColor; char *hairLength; char*eyeColor; }; #endif //Cats Module [login to view URL] #include “cats.h?? #include #include #include Cat::Cat() { srand( time ( ) )); setFurColor(); setEyeColor(); setHairLength(); } const char *Cat::getFurColor() const { } const char *Cat::getHairLength() const { } const char *Cat::getEyeColor() const { } void Cat::setFurColor() { } void Cat::setEyeColor() { } void Cat::setHairLength() { }
## Deliverables
1) Complete and fully-functional working program(s) in executable form as well as complete source code of all work done. 2) Installation package that will install the software (in ready-to-run condition) on the platform(s) specified in this bid request. 3) Exclusive and complete copyrights to all work purchased. (No GPL, GNU, 3rd party components, etc. unless all copyright ramifications are explained AND AGREED TO by the buyer on the site per the coder's Seller Legal Agreement).
## Platform
Windows XP, in all 4.0+ versions of internet explorer and Netscape, C++