@@ -0,0 +1,2629 @@
+package com.company;%0Aimport java.util.InputMismatchException;%0Aimport java.util.Scanner;%0A%0Apublic class MoreUserInput %7B%0A%0A    public static void main(String%5B%5D args) %7B%0A        Scanner keyboard = new Scanner(System.in);%0A        String first_name;%0A        String last_name;%0A        int grade = 0;%0A        int sid =0;%0A        String login;%0A        double gpa = -1; //initialize to negative 1 because my do-while statement will check for GPA between 0.0-4.0%0A%0A        System.out.println(%22Please enter the following information so I can sell it for a profit!%22);%0A%0A        System.out.print(%22First name: %22);%0A        first_name = keyboard.nextLine();%0A%0A        System.out.print(%22Last name: %22);%0A        last_name = keyboard.nextLine();%0A        // make sure you handle the exception of not receiving an int as well as valid grades%0A        do%7B%0A            try %7B%0A                System.out.print(%22Grade (9-12): %22);%0A                grade = keyboard.nextInt();%0A            %7Dcatch(InputMismatchException e)%7B%0A                System.out.println(%22Sorry, please enter a number between 9 & 12%22);%0A            %7D%0A            keyboard.nextLine(); %0A        %7Dwhile (grade %3C 9 %7C%7C grade %3E 12);%0A        // sid should be greater than 0 and numerical%0A        do %7B%0A            try %7B%0A                System.out.print(%22Student ID: %22);%0A                sid = keyboard.nextInt();//throw away the %5Cn not consumed by nextInt()%0A                if (sid==0)%7B%0A                    System.out.println(%22Your SID cannot be 0%22);%0A                %7D%0A            %7D catch (InputMismatchException y) %7B%0A                System.out.println(%22Sorry, your SID should not be zero & only contain numerical values.%22);%0A            %7D%0A            keyboard.nextLine();//throw away the %5Cn not consumed by nextInt()%0A        %7Dwhile(sid == 0);%0A        keyboard.nextLine(); //throw away the %5Cn not consumed by nextInt()%0A        System.out.print(%22Login ID: %22);%0A        login = keyboard.nextLine();%0A        // GPA should be between 0.0 and 4.0 and numerical%0A        do %7B%0A            try %7B%0A                System.out.print(%22GPA (0.0-4.0): %22);%0A                gpa = keyboard.nextDouble();%0A            %7Dcatch(InputMismatchException x)%7B%0A                System.out.println(%22Sorry, please enter a GPA between 0.0 & 4.0%22);%0A              %7D%0A            keyboard.nextLine();%0A        %7Dwhile(gpa %3C 0.0 %7C%7C gpa %3E 4.0);%0A%0A        System.out.println(%22Your information:%22);%0A        System.out.println(%22Login: %22 + login);%0A        System.out.println(%22ID: %22+sid);%0A        System.out.println(%22Name: %22 + last_name + %22, %22 + first_name);%0A        System.out.println(%22GPA: %22 + gpa);%0A        System.out.println(%22Grade: %22+grade);%0A%0A    %7D%0A%0A%7D%0A

Create MoreUserInput.java