Assignemnt #52

Code

/// Name: Ryan Volko
/// Period: 7
/// Program Name: Worst
/// File Name: Worst.java
/// Date Finished: 11/17/2015
import java.util.Scanner;
class Worst{

    public static void main(String[] args) {
    
        Scanner keyboard = new Scanner(System.in);
        
    double g, a;
    
    a = 23;
        
     System.out.println("");
      System.out.println("");
    System.out.println("Welcome to the worst number guessing game ever");
     System.out.println("");
      System.out.println("");
    System.out.print("I'm thinking of a number  between 1 and 10. Try and guess! ");
    g = keyboard.nextDouble();
     System.out.println("");
      System.out.println("");
    
    if ( g == a )
    {
    System.out.println("");
     System.out.println("");
    System.out.println("You got it, I can't believe you actually got that it was " + a + "!!!!!");
     System.out.println("");
      System.out.println("");
    }
    else
    {
     System.out.println("");
      System.out.println("");
    System.out.println("You are the worst at guessing how did you not know it was " + a);
     System.out.println("");
      System.out.println("");
    }
    
    }
}
    

Picture of the output

Assignment 52