Assignment #23
Code
///Name: Jack Newsom
///Period: 5
///Program Name: Hackbot
///Filename: Hackbot.java
///Date Finished: 9/16/15
import java.util.Scanner;
public class Hackbot
{
public static void main( String[] args )
{
Scanner hack = new Scanner(System.in);
String fName, lName, logName;
int grade, studentId;
Double GPA;
System.out.println("Hello, unsuspecting user. This program will use your data to blow up the world.");
System.out.println("Please answer the following questions so that we can begin world domination. Thank you.");
System.out.println();
System.out.println("First name?");
fName = hack.next();
System.out.println("Last Name?");
lName = hack.next();
System.out.println("Grade? (9-12)");
grade = hack.nextInt();
System.out.println("Student ID?");
studentId = hack.nextInt();
System.out.println("Login?");
logName = hack.next();
System.out.println("GPA? (0.0-4.0)");
GPA = hack.nextDouble();
System.out.println("Thank you for furthering our efforts to blow up Earth. Please double check that the below information is correct.");
System.out.println("Y0UR 1NF0RM4T10N:");
System.out.println(" Login:" + logName);
System.out.println(" Student ID:" + studentId);
System.out.println(" Name:" + lName + "," + fName);
System.out.println(" GPA:" + GPA);
System.out.println(" Grade:" + grade);
}
}
Picture of the output