Assignment #22
Code
/// Gian Adoremos
/// Period: 7
/// Program Name: TwentySecond Program
/// File Name: NameAgeSalary.java
/// Date Finished: 9/30/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 bro? " );
name = keyboard.next();
System.out.print( "Waddup, " + name + "! How old are you, bro? " );
age = keyboard.nextInt();
System.out.println("Only " + age + " years, bro? Cmon bro! " );
System.out.print( "Finally, how much bank do you make, " + name + "? " );
income = keyboard.nextDouble();
System.out.println( "That " + income + "better be per hour, bro!" );
System.out.println( "Well, thanks for answering my damn questions bro, " + name + "." );
}
}
}
Picture of the output