Coders Packet

Guessing A Number in Java

By TAYON ROY

The aim is to create a Java Program in which a user is given K chances to estimate a randomly generated number.

The aim is to create a Java Program in which a user is given k chances to estimate a randomly generated number. The game's rules are as follows:

if the guessed number is more than the real number, the program will display the message "guessed number greater than the actual number."

If the guessed number is less than the real number, the program will display a message indicating that the guessed number is less than the actual number.

If the guessed number is the same as the real number, or if all K trials have been completed, the program will terminate with an appropriate message.

Project 2 output

 

Download Complete Code

Comments

No comments yet

Download Packet

Reviews Report

Submitted by TAYON ROY (Tayon0404)

Download packets of source code on Coders Packet