CS505
Programming Assignment #5
Due Sunday, Feb. 25th at midnight.
The goal for this assignment is to extend the Pet Program from the text (a
copy is on the course schedule as well).
Make the following additions to the Pet Program:
- Add an introduction to the game explaining how it works.
- Extend the feed() function so the player has at least two choices of
food to feed to their pet. Different types of food should have different
effets.
- Extend the play() function so there are different outputs depending on
what the player chooses to do - like the "MMM, Yummy" output with feed().
- Add another data member to the pet class to represent another trait of the
pet, such as sleepiness, health, etc. Modify the play() and feed() functions to
also effect this data member.
- Add one more choice for how the player can interact with their pet (to
go with play and feed). For example, a choice to walk their pet or give it
a nap or a bath.
As always turn in a copy of the code and sample output showing the
code running. Make sure that the sample output includes examples of all of the
possible pet intereactions.