Assignemnt #19 More User Input of Data
Code
///Name: JJ Deng
///Period: 6
///Program Name: More User Input of Data
///File Name: MoreUserInputOfData.java
///Date Finished: 10/5/15
import java.util.Scanner;
public class MoreUserInputOfData
{
public static void main( String[] args )
{
String Fname, Lname, Login;
int Grade, id;
Double GPA;
Scanner J = new Scanner(System.in);
System.out.print( "Please enter the following information so I can sell it for a profit!" );
J.next();
System.out.print( "First name: " );
Fname = J.next();
System.out.print( "Last name: ");
Lname = J.next();
System.out.print( "Grade (9-12): ");
Grade = J.nextInt();
System.out.print( "Student ID: ");
id = J.nextInt();
System.out.print( "Login: ");
Login = J.next();
System.out.print( "GPA: ");
GPA = J.nextDouble();
System.out.println ( "Your information:" );
System.out.println ( " Login: " + Login);
System.out.println ( " ID: " + id);
System.out.println ( " Name: " + Fname + ", " + Lname);
System.out.println ( " GPA: " + GPA);
System.out.println ( " Grade: " + Grade);
}
}
Picture of the output