The computer will randomly select a word (from a bank of words that you create as an array of Strings), and the user wil

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

The computer will randomly select a word (from a bank of words that you create as an array of Strings), and the user wil

Post by answerhappygod »

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
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply