void ReadPlayer(PlayerT & player);
prompt for player name set player name set player score to 0 while favorite color is unknown prompt for favorite color read favorite color as string convert string to color if the color is not in the list of colors print error message set player's favorite color to favorite color
Enter the player's name: Dan Enter the player's favorite color: Grey Sorry Grey is not a valid color. Please select again Enter the player's favorite color: BlUe
void PrintPlayer(PlayerT player)
Balloon Hunter: name Favorite Color: color Score: score
Balloon Hunter: Dan Favorite Color: blue Score: 0
BalloonT ReadBalloon(ifstream & stream)
Color:Value:description of location
Red:4:A nice park
void PrintBalloon(BalloonT balloon)
You found a color balloon in place worth points points.
You found a red balloon in a nice park worth 4 points.
void GiveBalloon(PlayerT & player, BalloonT balloon)
Thank you, I love color balloons!
No thank you, I don't like color balloons.
Read the Player information Open the file "game.dat" Read in a balloon while the balloon is valid Print the description of the balloon Give the Player the balloon Print the player information. Print a blank line Read in a balloon Close the file Print final message
name your final score is score.
You found a cyan balloon in a sunny school worth 4 points. No thank you, I don't like cyan balloons. Balloon Hunter: Dan Favorite Color: green Score: 52 You found a green balloon in the tricky road worth 5 points. Thank you, I love green balloons! Balloon Hunter: Dan Favorite Color: green Score: 57 Dan your final score is 57.
If you have additional information to communicate, please put this in a file called ReadMe.