Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Please create a program in Java with the following guidlines: You have been hired by SDLC Gaming. Their goal is to create a number guessing
Please create a program in Java with the following guidlines:
You have been hired by SDLC Gaming. Their goal is to create a number guessing game against the CPU.
I.
Game Objective:
The game will start by generating a random number to be guessed by both the user and CPU. The user will get guess per round and the CPU will receive a predetermined number of guesses; this number can change. The first player to guess the number correctly wins!
II
CPU Difficulty:
The user will be able to set or determine the number of guesses the CPU can make at the start of each game. There will be possible modes to set a CPU's guesses to:
Easy allows the CPU to make guesses per round.
Medium allows the CPU to make guesses per round.
Hard allows the CPU to make guesses per round.
I encourage you to create your own names for settings
III. UserCPU Guesses:
Each time the user guesses a number, information regarding the guess will be provided:
If the guess is too high display "Too High"
If the guess is too low display "Too Low"
If the guess is correct display "Correct!"
If the user guess is incorrect the CPU will make a predetermined number of guesses or
Each guess made by the CPU will be done by generating a random number.
IV Scoreboard:
Reward pt to the winner of each game. Display a scoreboard after each game.
V Game Duration:
The game will continue until the correct number is guessed by the user or CPU. The program will continue until the user chooses to exit the program.
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