Write an application for a college’s admissions office. Prompt the user for a
student’s numeric high school grade point average (for example, 3.2) and an
admission test score from 0 to 100. Display the message “Accept” if the student
has any of the following:
u A grade point average of 3.0 or above and an admission test score of at least 60
u A grade point average below 3.0 and an admission test score of at least 80
If the student does not meet either
Admission.java
import java.util.Scanner;
public class admission
{
public static void main (String[] args)
{
Scanner keyboard = new Scanner(System.in);
System.out.println("Please enter your gpa ");
double gpa = keyboard.nextDouble();
System.out.println("Please enter your test score ");
double score = keyboard.nextDouble();
if(gpa >= 3.0)
{
if(score >= 60)
System.out.println("You are accepted!");
else
System.out.println("You are not accepted");
}
else
if(score >= 80)
System.out.println("You are accepted!");
}
}