Question
THIS IS A JAVA PROGRAM. THE PICTURE SHOWN IS WHAT IT MUST LOOK LIKE. THE COMPUTER MUST USE BRUTE FORCE. THE COMPUTER MUST MAKE THE
THIS IS A JAVA PROGRAM. THE PICTURE SHOWN IS WHAT IT MUST LOOK LIKE.
THE COMPUTER MUST USE BRUTE FORCE. THE COMPUTER MUST MAKE THE GUESSES, NOT THE USER
1. Write a hangmans program where the user is a computer that has to guess the word JAVA. The computer uses a brute force method.
a. First write the program that shows (prints) each guess (the letter) and also draws the result (line by line, circle by circle) when the guess is wrong.
b. What does the brute force method do exactly?
The computer draws both the gallows and the victim. The gallows and hapless victim look like this:
a. Why does the computer win every time if the word is JAVA?
b. Look at the following list of words and determine ahead of time if the computer would win. Then prove our conclusion by running your program
Word List:
ADA
COBOL
LOGO
PEARL
BASIC
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started