Assignment #23 MoreUserInputOfData
Code
/// Name: Lacey Reese
/// Period: 5
/// Program Name: MoreUserInputOfData
/// File Name: MoreUserInputOfData.java
/// Date Finished 10/3/2015
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 Lacey= new Scanner(System.in);
System.out.println( "First name: " );
First_name=Lacey.next();
System.out.println( "Last name: " );
Last_name=Lacey.next();
System.out.println( "Grade: " );
Grade=Lacey.nextInt();
System.out.println( "Student ID: " );
Student_ID=Lacey.nextInt();
System.out.println( "Login: " );
Login=Lacey.next();
System.out.println( "GPA: " );
GPA=Lacey.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 the output
// this was very very hard