Assignment # 22 and Name Age and Salary

Code

    /// Name: Tommy Oyuntseren
    /// Period: 7
    /// Program Name: NameAgeSalary
    /// File Name: NameAgeSalary.java
    /// Date Finished: 9/30/15

  import java.util.Scanner;

  public class NameAgeSalary
  {
     public static void main (String[] args)
      {
        Scanner keyboard = new Scanner(System.in);
        
        String name;
        int age;
        double income;
        
      
        System.out.print( "What is your name human? " );
        name = keyboard.next();
 
        System.out.print( "What's up, " + name + "! How many years have  you survived so far? " );
        age = keyboard.nextInt();
 
        System.out.println( "So  " + age + " years, eh? Interesing, human. " );
 
        System.out.print( "Finally, what's your income, " + name + " ? " );
        income = keyboard.nextDouble();

        System.out.println( "Hopefully that is " + income + " per hour and not per decade!" );
        System.out.println( "Anyways, thanks for answering my weird questions, " + name + "." );

        
      }
  }
   
   

  

Picture of the output

Assignment 22