Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Create an application that allows you to enter student data than consists of an

ID: 3792544 • Letter: C

Question

Create an application that allows you to enter student data than consists of an ID number, first name, last name, and grade point average. If the student's GPA is less than 2.0, write the record to an academic probation file, otherwise, write the record to a good standing file

Once the student records are complete, read in the good standing file. If the GPA is greater than or equal to 3.5, display the students name for the Dean's List

Be sure to include any exceptions needed for the program to run smoothly.

Explanation / Answer

GPATest.java


import java.util.Scanner;

public class GPATest {

  
   public static void main(String[] args) {
       Scanner scan = new Scanner(System.in);
       System.out.println("Enter the student ID: ");
       int id = scan.nextInt();
       System.out.println("Enter the student first name: ");
       String firstName = scan.next();
       System.out.println("Enter the student last name: ");
       String lastName = scan.next();
       System.out.println("Enter a GPA:");
       double gpa = scan.nextDouble();
       if(gpa >= 3.9){
           System.out.println("Dean's List");
       }
       else if(gpa >=3.5){
           System.out.println("Honor Roll");
       }
       else if(gpa >=2.0){
           System.out.println("Good Standing");
       }
       else {
           System.out.println("Academic Probation");
       }
   }

}

Output:

Enter the student ID:
111
Enter the student first name:
Suresh
Enter the student last name:
Murapaka
Enter a GPA:
3.3
Good Standing

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote