Question
jGRASP Java language B04 - Academic admission system Write a program in a java file called Admissions.java You will write a program that will either
jGRASP Java language
B04 - Academic admission system
Write a program in a java file called Admissions.java
You will write a program that will either accept or deny graduate admissions based on the grades obtained in the undergraduate program.
The conversion from letter grades to GPA points is the following:
LETTER GRADE | GPA points |
A+ | 4.3 |
A | 4.0 |
A- | 3.7 |
B+ | 3.3 |
B | 3.0 |
B- | 2.7 |
C+ | 2.3 |
C | 2.0 |
C- | 1.7 |
D+ | 1.3 |
D | 1.0 |
D- | 0.7 |
F | 0.0 |
Your program will call a method askUserGrade, that asks the user for the letter grade obtained in an undergraduate course and returns the corresponding GPA points. In order for the user to finish entering grades, the user will enter "EXIT" and your program will return -1.
Back in the main method, your program will accumulate the GPA points and count the number of grades entered by the user. When the user enters EXIT, then your program stop asking for more grades. When the program stops asking for grades, it will call a method named computeAverageGPA that, based on the accumulated points and the number of grades entered, will compute and return the average GPA points.
Then, your program will call a method named askForProgram, where the user will enter either "masters" or "phd", but in any combination of lowercase and uppercase letter. Your method will return the user input.
Back in the main method, your program will call the processApplication, where the program will decide whether or not the application is accepted depending on the average GPA, the program the user is applying to and the following rules. Your method will print the final decision:
- If the user is applying to the Masters program, then he/she needs a GPA above 3.0
- If the user is applying to the PhD program, then he/she needs a GPA above 3.5
NOTE:The user can enter any combination of uppercase and lowercase letters for "masters" or "phd". You can assume users will always enter any of these two values.
That is, the user can enter "Masters", "MASTERS", "masters", "MaStErS", "PHD", "phd", "PhD", etc. but not "doctorate", "bachelors", etc.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started