Keyboard Input #23 (Alright Mr. Davis, you are now scaring me with this program)
Code
/// Name: Amir Salehi
/// Period: 7
/// Program name: MoreUserInputOfData
/// File name: MoreUserInputOfData.java
/// Date: Finished 10/1/2015
import java.util.Scanner;
public class MoreUserInputOfData
{
public static void main( String[] args )
{
String firstName, lastName, Login ;
int Grade, studentID ;
double GPA ;
Scanner keyboard = new Scanner(System.in);
System.out.print( "Please enter the following information so I can sell it for a profit! " );
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: " );
studentID = keyboard.nextInt();
System.out.print( "Login: " );
Login = keyboard.next();
System.out.print( "GPA (0.0-4): " );
GPA = keyboard.nextDouble();
System.out.print( "Your Information");
System.out.print("Login: " + Login );
System.out.print("ID: " + studentID );
System.out.print("Name: " + firstName + " " + lastName );
System.out.print("GPA: " + GPA );
System.out.print("Grade: " + Grade );
}
}
Picture of the output