Assignemnt #23 - More User Input
Code
/// Name: Caelan Dorstad
/// Period: 6
/// Program Name: MoreInput
/// File Name: MoreInput.java
/// Date Finished: 10/20/2015
import java.util.Scanner;
public class Data{
public static void main(String[] args){
String Login, F_Name, L_Name;
int Grade, ID;
double GPA;
Scanner keyboard = new Scanner(System.in);
System.out.print("First Name : ");
F_Name = keyboard.next();
System.out.print("Last Name : ");
L_Name = 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-4.0): ");
GPA = keyboard.nextDouble();
System.out.println("**********Your information:**********");
System.out.println(" Login: " + Login);
System.out.println(" ID: " + ID);
System.out.println(" Name: " + L_Name + ", " + F_Name);
System.out.println(" GPA: " + GPA);
System.out.println(" Grade: " + Grade);
}
}
Picture of the output