Assignemnt #24 and Age

Code

    ///Name: Joshua Bautista
    ///Period: 6
    ///Project Name: Age
    ///File Name: Age.java
    ///Date: 10/19/2015
    
    import java.util.Scanner;

public class Age
{
    public static void main(String[] args )
    {
        String name;
        int age, youngerage, olderage;
        
        Scanner keyboard = new Scanner(System.in);
        
        System.out.print( " Hello human, what is your name? ");
        name = keyboard.next();
        System.out.print( "Welcome, " + name + "! How old are you?" );
        age = keyboard.nextInt();
        System.out.println( "Did you know that in five years you will be " + (age+5) + " years old? " );
        System.out.println( "And five years ago you were " + (age-5) + " Imagine that! ");
        }
    }
    

Picture of the output

Assignment 1