Modify the numbers guessing game program suppose that the


Question: Modify the numbers guessing game program. Suppose that the variable num and guess are as declared and the diff is an int variable. Let diff= the absolute value of (num-guess). If diff is 0, then guess is correct and the program outputs a message indicating that the user guessed the correct number.

Suppose diff is not 0. Then the program outputs the message as given:

Part 1: If diff is greater than or equal to 50, the program outputs the message indicating that the guess is very high(if guess is greater than num) or very low ( if guess is less than num).

Part 2: If diff is greater than or equal to 30 and less than 50, the program outputs the message indicating that the guess is high (if guess is greater than num). or low ( if guess is less than num).

Part 3: If diff is greater than 0 and less than 15, the program outputs the message indicating that the quess is somewhat high (if guess is greater than num) or somewhat low (if guess is less than num).

You need to modify the numbers guessing game program

Request for Solution File

Ask an Expert for Answer!!
JAVA Programming: Modify the numbers guessing game program suppose that the
Reference No:- TGS0954086

Expected delivery within 24 Hours