Assignemnt #22 and Name Age and Salary
Code
/// Name: Yordan Rashkov
/// Period: 7
/// Program Name: Name Age and Salary
/// File Name: NameAgeSalary.java
/// Date Finished: 10/06/2015
import java.util.Scanner;
public class NameAgeSalary
{
public static void main( String[] args )
{
String name;
int age;
double weight, income;
Scanner keyboard = new Scanner(System.in);
System.out.print( "Hey you! Yeah you! What's your name huh? " );
name = keyboard.next();
System.out.print( "How old are you " + name + "? " );
age = keyboard.nextInt();
System.out.println( "Cool. So you're " + age + ". huh? " );
System.out.print( "How much does your fat weigh, " + name + "? " );
weight = keyboard.nextDouble();
System.out.print( "CooOoOooooOOOoOoOlioooOooo... Whats yur income, " + name + "? " );
income = keyboard.nextDouble();
System.out.println( "That sucks bro. You should make more than " + income + "...");
System.out.println( "Well, best of everything to you son! Oh and sorry for making fun of you. It just makes my day to make fun of people like you!" );
}
}