Assignemnt #20 and ForgetfulMachine

Code

  /// name: Leila Ordukhani
  /// period: 6
  /// program name: Seventeenth Program
  /// file name: ForgetfulMachine.java
  /// date finished: 9/28/15
  
 import java.util.Scanner;
  
  public class ForgetfulMachine
  {
      public static void main( String[] args )
      {
      
      String capital;
      int number;
      double decimal;
      String response;
      
         Scanner keyboard = new Scanner(System.in);
  
         System.out.println( "What city is the capital of France?" );
         capital = keyboard.next();
 
         System.out.println( "What is 6 multiplied by 7?" );
         number = keyboard.nextInt();
 
         System.out.println( "What is your favorite number between 0.0 and 1.0?" );
         decimal = keyboard.nextDouble();
 
         System.out.println( "Is there anything else you would like to tell me?" );
         response = keyboard.next();
     }
 }
 

Picture of the output

Assignment 20