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

THIS IS A JAVA PROGRAM. THE PICTURE SHOWN IS WHAT IT MUST

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!