Project 2
The PetSim puts the player in charge of his own virtual pet. Theplayer is completely responsible for keeping the pet happy. He canfeed and play with the pet to keep it in a good mood. He can alsolisten to the pet to learn how the pet is feeling, which can rangefrom happy to mad. If you fail to feed or entertain your pet, itwill have a mood change for the worse. But, with the proper careyour pet can return to a sunny mood. NOTE: Improvise the game ifnecessary.
Declare your variables as staticvariables
PetMood()
The pet’s mood is directly based on its
OR
OR