PROGRAMMING AND CODE
Assignemnt #23
Code
/// Name: Justin Li /// Period 7 /// Program Name: MoreUserInput /// File Name: MoreUserInput.java /// Date Finished: 9/28/15 import java.util.Scanner; class MoreUserInput { public static void main(String[]args) { Scanner keyboard = new Scanner(System.in); String FirstName, LastName, Login; int Grade, ID; double GPA; 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("GPA: "); GPA = keyboard.nextDouble(); System.out.println(""); System.out.println(" Your information:"); System.out.println(" Login: " + ID); System.out.println(" ID: " + ID); System.out.println(" Name: " + FirstName + LastName); System.out.println(" GPA: " + GPA); System.out.println(" Grade: " + Grade); } }