Assignment #23
Code
/// Gian Adoremos
/// Period: 7
/// Program Name: TwentyThird Program
/// File Name: InputData.java
/// Date Finished: 10/1/2015
import java.util.Scanner;
public class InputData
{
public static void main (String[] args)
{
Scanner keyboard = new Scanner(System.in);
String firstname, lastname, login;
int grade, ID;
double GPA;
{
System.out.print( "Please enter the following information so I can make that bank! ");
System.out.print( "First Name: ");
firstname = keyboard.next();
System.out.print( "Last Name: ");
lastname = keyboard.next();
System.out.print( "Grade (9-12): ");
grade = keyboard.nextInt();
System.out.print( "Student ID: ");
ID = keyboard.nextInt();
System.out.print( "Login: ");
login = keyboard.next();
System.out.print( "GPA (0.0-5.0): ");
GPA = keyboard.nextDouble();
System.out.println("Your information:");
System.out.println(" Login: "+login);
System.out.println(" ID: "+ID);
System.out.println(" Name: "+lastname+", "+firstname);
System.out.println(" GPA: "+GPA);
System.out.println(" Grade: "+grade);
}
}
}
Picture of the output