NameAgeSalary

Code

 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( "My name is Box what is yours?" );
      name = keyboard.next();
      
      System.out.print( "How old are you? " + name);
      age = keyboard.nextInt();
      
      System.out.print( "So you are " + age + "years old, thats extremely old");
      
      System.out.print( "How much do you make " + name + "?");
      salary = keyboard.nextDouble();
      
      System.out.print( salary + " So thats your yearly right?");
          
      }
  }

NameAgeSalary

Assignment 22