Assignment #22

Code

    ///Name: Cody Swain
    ///Period: 6
    ///Project Name: NameAgeSalary
    ///File Name: NameAgeSalary.java
    ///Date: 9/29/15
    
    import java.util.Scanner;
    
    public class NameAgeSalary
    {
        public static void main( String[] args )
        {
            
            String name;
            int age;
            double salary;
            
            Scanner keyboard = new Scanner(System.in);
            
            System.out.print( " Hi. Who r u? " );
            name = keyboard.next();
            
            System.out.print( "Hola " + name + "! Cuando anos tienes? " );
            age = keyboard.nextInt();
            
            System.out.println( "So you're " + age + ", eh? Crikey! " );
            System.out.println( "How much you make " + name + "!!!!!" );
            salary = keyboard.nextDouble();
            
            System.out.println( salary + "! heh! hahahahaha @@##$$%^^&" );
        }
    }

    
    

Picture of the output

Assignment 22