Hey everyone! I'm new to Java programming and I'm trying to create a simple grade calculator. I want it to evaluate student averages and categorize them into different honors: Not in honor, with honors, with high honors, and with highest honors. The criteria I have are:
- Not in honor: Average < 89.5
- With honors: 89.5 ≤ Average < 94.5
- With high honors: 94.5 ≤ Average < 97.5
- With highest honors: 97.5 ≤ Average ≤ 99
I started off using if statements, but I've hit a bit of a wall. Could anyone help me figure out what I'm missing? I would greatly appreciate your support. Thanks a ton!
1 Answer
It sounds like a great project! To assist you better, can you share the code you've written so far? It's usually easier to identify where the issues are when we can see what you've done. I think you're on the right track with using if statements, just probably missed something along the way.
Sure! Here's what I have so far:
```java
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
// Your other variables and code here...
}
}
```
I'm trying to calculate the average, but I’m not sure how to use the if statements for classifications.