Assignemnt #18 Name Age And Salary

Code

    ///Name: JJ Deng
    ///Period: 6
    ///Program Name: Name, Age, and Salary
    ///File Name: NameAgeAndSalary.java
    ///Date Finished: 10/5/15
    
    import java.util.Scanner;
    
    public class NameAgeAndSalary
    {
        public static void main( String[] args )
        {
            String name;
            int age;
            Double weight, salary;
            
            Scanner Questions = new Scanner(System.in);
            
            System.out.print( "Hello. What is your name?" );
            name = Questions.next();
            
            System.out.print( "Hi " + name + " ! How old are you?" ) ;
            age = Questions.nextInt();
            
            System.out.print( "So  your " + age + ". eh? that ain't old at all!" );
            System.out.print( "How much do you make, " + name + "?" );
            salary = Questions.nextDouble();
            
            System.out.println ( salary + "!"+ " I hope that's per hour and not per year! LOL!" );
            
        }
    }
    

Picture of the output

Assignment 18