Assignment #22 NameAgeAndSalay
Code
/// Name: Lacey Reese
/// Period: 5
/// Program Name: NameAgeAndSalary
/// File Name: NameAgeAndSalary.java
/// Date Finished 9/29/2015
import java.util.Scanner;
public class NameAgeAndSalary
{
public static void main( String[] args )
{
String Name;
int age;
double wage;
Scanner Lacey = new Scanner(System.in);
System.out.print( "What is your name? " );
Name = Lacey.next();
System.out.print( " Hi, " + Name + " How old are you? " );
age = Lacey.nextInt();
System.out.print( "So you're " + age + " , eh? That's not old at all. " );
System.out.print( "How much do you make, " + Name + "?" );
wage = Lacey.nextDouble();
System.out.println ( "" + wage + "! I hope thats per hour not per year! LOL! " );
}
}
Picture of the output
// LOLOLOLOLOLOLOLOL