Assignment 22, NAaS
Code
///Name: Stella Koliavas
///Period: 5
///Program Name: NAaS
///File Name: NAaS.java
///Date Finshed: 9/30/15
import java.util.Scanner;
public class NAaS
{
public static void main( String []args)
{
String name;
int age;
double income;
Scanner siri = new Scanner(System.in);
System.out.print("Yo wass your name");
name= siri.next();
System.out.print(" Hi, " + name+ "! How old are you?");
age= siri.nextInt();
System.out.println("So you're, " + age+ " huh? That's pretty old you hag.");
System.out.print(" How much money do you make," +name+ "?");
income= siri.nextDouble();
System.out.println("You would like to give me " + income+ " right now? Aw, how sweet, thank you!");
}
}
Picture of the output