Assignment #23

Code

/// Name: Dr. Jonathan Stine 
/// Period 5
/// Program Name: SellYourData
/// File Name: SellYourData.java
/// Date Finished: 10/1/15

 import java.util.Scanner;
    
    public class SellYourData {
        
        public static void main( String [] args ) {
            
        Scanner keyboard = new Scanner(System.in);

		    int grade, ID;
		    String firstName, lastName, login;
		    double GPA;
        
        System.out.println("Please enter the following data so I can sell it for a profit!");
        
        System.out.println("First Name:");
        firstName = keyboard.next();
        
        System.out.println("Last Name:");
        lastName = keyboard.next();
        
        System.out.println("Login:");
        login = keyboard.next();
        
        System.out.println("ID:");
        ID = keyboard.nextInt();
        
        System.out.println("Grade:");
        grade = keyboard.nextInt();
        
        System.out.println("GPA");
        GPA = keyboard.nextDouble();
    
        
        System.out.println();
        System.out.println( "\nYour information:" );
        System.out.println( "\tLogin: " + login );
        System.out.println( "\tID: " + ID );
        System.out.println( "\tName: " + lastName + ", " + firstName );
        System.out.println( "\tGPA: " + GPA );
        System.out.println( "\tGrade: " + grade );
        
    }
}
        
  

    

Code Output