Question: Programming Project The program will allow the user to play multiple games. Once a game is complete the user will be prompted to play a
Programming Project
The program will allow the user to play multiple games. Once a game is complete the user will be prompted to play a new game or quit.
(note- 1- Construct a program that is simple to follow and uses techniques that professor would expect a beginner to use; 2- Complete all parts)




Part 1 Design and build a GuessingGame class. a. One constant 1. MAXGUESSESALLOWED ii. an int that represents the maximum number of guesses the user gets, once this value is passed the game is over. (set to 6) b. Seven instance variables answer - an integer representing the randomly generated number. generator-a random Generator object (create from the Java API Random class) (pg 250 in text) i. 11. iii. gameOver - a Boolean, false if game still in progress, true if the game s over iv. differential - an integer representing the difference between a guess and the answer. max - maximum value of the number to guess. For example, if the maximum number is 100 then the number to guess would be between 0 and 100.(inclusive) numGuessesTaken - an integer that stores the number of guessed taken so far in any game. v. vi
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
