2006-7-4 06:25 AM
pakchichai
A program about C++
Program Description
qd'kL5dTq
Create a guessing game.p
s
^9K
g'U/N
n3m&~cM0{5V3r
The guessing game will be menu based, the menu options are set difficulty, play and quit..h5eJ7Kr6J6Ba;h
There are 3 difficulty levels; the first has a number range of 1-10, the second 1-100, the third –500 to 500. (kwry
f"u_KIB:g$P
Play will play a guessing round.mmKZb+l
Quit simply leaves the application.w hv
T8],[
The game will go in cycles after each game show the menu options again, allowing the player to choose again.
3I%RKN b\.`9P)s
Game play: randomly select a number for the difficulty level, have the user try to guess the number, if they are wrong, tell them to guess higher or lower. Keep track of the number of guesses.u(l'Y5_/@a
Each aspect of the program should use a function, a function should display the menu, a function should generate the random number, based on the difficulty (parameter pass), a function or functions for playing the game, the main should only have at the most the main process loop.
!o*r2cJ.o8s