Assignment #20 MoreQuestions

Code

    
    /// Name: Lacey Reese 
    /// Period: 5
    /// Program Name: MoreQuestions
    /// File Name: MoreQuestions.java
    /// Date Finished 9/28/2015
    
  import java.util.Scanner;

public class ForgetfulMachine
{
    public static void main( String[] args )
    {
        Scanner keyboard = new Scanner(System.in);
        
        System.out.println( "What city is the capital of France?" );
        keyboard.next();
        
        System.out.println( "What is 6 multiplied by 7?" );
        keyboard.nextInt();
        
        System.out.println( "What is your favorite number between 0.0 and 1.0?" );
        keyboard.nextDouble();
        
        System.out.println( "Is there anything else you would like to tell me?" );
        keyboard.next();
    }
}
                           
    

Picture of the output

// My sister watched me code. She is in advanced data structures in UCSD, and her favorite code is java Assignment 20