Assignemnt #23 More User Imput
Code
/// Name: Tyler Hart
/// Period: 5
/// Program Name: More User Imputs
/// File Name: MoreUserImputs.java
/// Date Finished: 9/23/2015
import java.util.Scanner;
public class MoreUserImputs
{
public static void main( String[] args)
{
Scanner keyboard = new Scanner(System.in);
String first, last, login;
int grade, iD;
double gpa;
System.out.print("First name: ");
first = keyboard.next();
System.out.print("Last name: ");
last = 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: " + last + ", " + first);
System.out.println(" GPA: " + gpa);
System.out.println(" Grade: " + grade);
}
}
Picture of the output