Assignemnt #52 and Worst Number Guessing Game
Code
///Name: Daniel Tiffany- Appleton
///Period: 7
///Program Name: Worst Number Guessing Game
///File Name: WorstNumberGuessingGame
///Date Finished: 10/30/15
import java.util.Scanner;
public class WorstNumberGuessingGame
{
public static void main( String[] args )
{
Scanner keyboard = new Scanner(System.in);
int guessNumber, secretNumber;
secretNumber = -4;
System.out.println( "REDY 2 PLA DA BES NMBR GUSSING GAM" );
System.out.println( "" );
System.out.println( "I THIK OF A NMBR BETEEN 1 AND 10. WOT IS IT? " );
System.out.println( "" );
guessNumber = keyboard.nextInt();
if ( guessNumber == secretNumber )
{
System.out.println( "" );
System.out.println( "HURAY U GOT DA NMBR CORECT! DA NMBR WAS " + secretNumber + "." );
}
else
{
System.out.println( "TAT NOT THE NMBR. U R BAD AT GUSSING. ITS WA " + secretNumber + "." );
}
}
}
Picture of the output