The computer will randomly select a word (from a bank of words that you create as an array of Strings), and the user wil
Posted: Fri May 20, 2022 10:57 am
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.
This program should be in java without using modifier
private
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.
This program should be in java without using modifier
private