Question: Objective Practice while loop and Random class Problem Write a program that plays a guessing game with the user. The program should generate a random
Objective
Practice while loop and Random class
Problem
Write a program that plays a guessing game with the user. The program should generate a
random letter between a A and Z Then prompt the user repeatedly to guess the letter. When the
user gives a wrong guess then computer should hint the user if the correct answer is higher or
lower than the guess. Once the user guesses it correctly, then your program should print a
message indicating the number of guesses. Your program should allow multiple games to be
played by the user.
Requirements
You are required to implement the following methods
Main method: the required code for this method is provided
FunGame: This method has a loop allowing the game to be played multiple times. This
method calls the other methods. Pseudocode is given in the shell.
playAgain: This method gets the users respond as YESNO As long as the user is not
entering a correct answer it loops. Pseudocode is given in the shell.
introduction: This method displays an introduction to the game. You must create your
own introduction
playGame: this method plays the game. Pseudocode is given in the shell.
useRespond: This method asks the user to enter their guess which is a letter AZ as long
as the user enters a letter out of the range, keep asking the user for a valid input. While
loop is needed. Pseudocode is given in the shell.
summary: the code for this method is given.
Output
Your code must play the game similar to the given output. Please refer to the output file.
Grade
Your grade be based on the code you submitted, the output generated by your code. Rubric will
be used.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
