Need Help With a Java Average Grade Calculator

0
4
Asked By CodingExplorer77 On

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

Answered By DebuggingNinja42 On

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.

CodingExplorer77 -

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.

Related Questions

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.