Assignemnt #23 MoreUserInputOfData
Code
///Name: Morgan Kaplan
///Period: 5
///Project Name: MoreUserInputOfData
///File Name: MoreUserInputOfData.java
import java.util.Scanner;
public class MoreUserInputOfData
{
public static void main( String[] args )
{
String First_name, Last_name, Login;
int Grade, Student_ID;
double GPA;
Scanner momo= new Scanner(System.in);
System.out.println( "First name: " );
First_name=momo.next();
System.out.println( "Last name: " );
Last_name=momo.next();
System.out.println( "Grade: " );
Grade=momo.nextInt();
System.out.println( "Student ID: " );
Student_ID=momo.nextInt();
System.out.println( "Login: " );
Login=momo.next();
System.out.println( "GPA: " );
GPA=momo.nextDouble();
System.out.println ( "Your Information" );
System.out.println ( "First name: " + First_name + "" );
System.out.println ( "Last name: " + Last_name + "" );
System.out.println ( "Grade: " + Grade + "" );
System.out.println ( "Student ID: " + Student_ID + "" );
System.out.println ( "Login: " + Login + "" );
System.out.println ( "GPA: " + GPA + "" );
}
}
Picture of Output