Assignemnt #52: The Worst Number-Guessing Game

Code

    /// Name: Kelsey Lieberman
    /// Period 5
    /// Program Name: NumberGuessingGame
    /// File Name: NumberGuessingGame.java
    /// Date Finished: 11/10/2015
    
import java.util.Scanner;

public class NumberGuessingGame
{
    public static void main(String[] args)
    {
        Scanner keyboard = new Scanner(System.in);
        
        int number = 6, ans;
        
        System.out.println("ErRMAhgErd tHis is da dAnKeStEsT guessinG game in yE gaLAxy!!\n");
        System.out.print("I AM tHINkINg Of A NUMbEr fRom 1-10... CaN Y OU guEss WHaT it iS???: ");
        ans = keyboard.nextInt();
        
        if (ans == number)
            System.out.println("\nWOOOW SucH PhyCHiC! WaY To GUeSS!! DOot dOOt you gessd the RITE n8iuber!! CAptaiN Skeltal ewould be PrOUd!!\n");
        if (ans != number)
           System.out.println("\nOOOOH gOT You SiR BEtERB lUvK next TIme ye scALlyWAGER. lOOkSlIKE i aM tOo sHwIfTy 4 U!!\n");
    }
}
    

Picture of the output

Assignment 52