|
-
REMEMBER: Your variables and functions are to be saved in a
particular format. If they are not, you will not get credit for your
assignment. Variables should be named with the first initial of
your first name, first initial of your last name, the letter v, an
underscore and the name of your variable. Ex: ncv_variable name
Functions should be named in the same way. Ex: ncf_function name
-
In this program you will create a game that selects one word from a set
of 10 words that you (the programmer) will select. Your program will then
scramble the word (change the position of the letters in the word). Your
program will then challenge the player (user) to guess the word. Your
program will need to ....
-
Have a list of 10 words (you can do more if you want).
-
Randomly select a word from the list mentioned above.
-
Be able to slice the word and reconstruct it in a scrambled form.
-
Keep track of the word being scrambled.
-
Accept a players guess at the word.
-
Compare the players guess to the word (unscrambled version).
-
Congratulate the player when the player gets the right answer.
-
Count the number of tries the player uses to guess the word.
-
As with the last problem, you can use the review of this problem in the
back of the chapter,however, you cannot use any of the same variables
used in the book (you must create your own variables).
-
Save your program to a file and take a screenshot of the output after
you have run your program. You will have 2 files that you will send as
attachments to your email.
(DO NOT COPY AND PASTE YOUR CODE, PROGRAM(S) OR SCREENSHOTS INTO
THE BODY OF THE EMAIL. THIS WILL RESULT IN A GRADE OF ZERO !)
Make sure to include your name and the assignment number you are
emailing.
|