Assignemnt #22: Name, Age,and Salary

Code

    /// Name: Kelsey Lieberman
    /// Period 5
    /// Program Name: NameAgeSalary
    /// File Name: NameAgeSalary.java
    /// Date Finished: 9/11/2015
    
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? ");
        name = keyboard.next();
        
        System.out.println("Oh your name is " + name + "? Nice.");
        System.out.print("How old are you, " + name + "? ");
        age = keyboard.nextInt();
        
        System.out.println("That is a good age");
        System.out.print("How much you make? $");
        income = keyboard.nextDouble();
        System.out.print("Just in two days? ");
        keyboard.next();
        System.out.println("That's dank.");
    }
}
        

    

Picture of the output

Assignment 22