[SOLVED] CPSC_233 Java program that runs a guessing game

15.00 $

Category:
Click Category Button to View Your Next Assignment | Homework

You will receive the following solution file(s) instantly after successful payment:

zip file icon A1.zip (39.6 KB)
Assignment Instructions Updated Recently? Submit Below and we will provide new Solution!
Submit New Instructions
πŸ”’ Securely Powered by:
Secure Checkout
5/5 - (2 votes)

Requirements:

Create a Java program that runs a guessing game. The computer chooses a random number between 1 and 20. The user

continues providing guesses until they have guessed the number. After each guess, let the user know if their guess was correct,

too low or too high. The execution of your program may look as follows:

I’m thinking of a number between 1 and 20.

What is your guess: 10

Too high

What is your guess: S

Too Low

What is your guess: 8

Too high

What is your guess: 7

That’s the number was thinking of! Well done.

Additional Information:

  1. Before the program starts, print the random number to aid testing and debugging.
  2. Try to figure out how to generate random numbers in Java by doing a Google search. Ifyou have trouble deciphering the

information you find, use the course discussion board to get further clarification.

  1. Once you have your program running, do some error checking. Check to make sure the user entered a number and that it

is a number between 1 and 20.

 

  • A1.zip