Assignemnt #20 and Machine.java

Code

    /// Name: Boris Kazantsev
    /// Period: 6
    /// Program Name: Machine
    /// File Name: Machine.java
    /// Date Finished: 9/20/2015
    
    import java.util.Scanner;
    
    public class Machine{
        public static void main(String[] args){
            Scanner keyboard = new Scanner(System.in);
            
            System.out.println("What is the capital of Russia?");
            keyboard.next();
            
            System.out.println("What is 3 multiplied by 9?");
            keyboard.nextInt();
            
            System.out.println("What is your favorite number between 1 and 100?");
            keyboard.nextDouble();
            
            System.out.println("Is there anything else you would like to tell me?");
            keyboard.next();
        }
    }
        
        

    

Picture of the output

Assignment 20