The file name needs to be: FinalProject.java PROGRAM should be in java Guess the Word The computer will randomly select
Posted: Fri May 20, 2022 11:03 am
The file name needs to be:
FinalProject.java
PROGRAM should be in java
Guess the Word
The computer will randomly select a word (from a bank of
words that you create as an array of Strings), and the user will
guess a letter. If the letter is in the word, the user is alerted
and the current state of the word should be displayed (blanks for
letters that have not yet been discovered, and user identified
letters in the spots where they reside). Two end conditions
exist:
The user has guessed all the correct letters before
exhausting 7 guesses
All the guesses have been exhausted and the word has not
been solved
Notes:
This program should include at least one array (and
possibly more than one). It should also include at least one loop,
at least one method other than main, and at least one
if-statement.
On each turn, the user should see the blanks for each
letter (if a letter has been guessed properly, then it should be
displayed instead of the blank), the number of guesses remaining,
and a list of erroneous letter guesses.
Don't use the private modifier .
Add top and bottom comments by copying and pasting from
this file (special for final!). Don't worry about the comments it
just wants to add name and date.
FinalProject.java
PROGRAM should be in java
Guess the Word
The computer will randomly select a word (from a bank of
words that you create as an array of Strings), and the user will
guess a letter. If the letter is in the word, the user is alerted
and the current state of the word should be displayed (blanks for
letters that have not yet been discovered, and user identified
letters in the spots where they reside). Two end conditions
exist:
The user has guessed all the correct letters before
exhausting 7 guesses
All the guesses have been exhausted and the word has not
been solved
Notes:
This program should include at least one array (and
possibly more than one). It should also include at least one loop,
at least one method other than main, and at least one
if-statement.
On each turn, the user should see the blanks for each
letter (if a letter has been guessed properly, then it should be
displayed instead of the blank), the number of guesses remaining,
and a list of erroneous letter guesses.
Don't use the private modifier .
Add top and bottom comments by copying and pasting from
this file (special for final!). Don't worry about the comments it
just wants to add name and date.