A simple Java program to determine a student’s grade or class category based on exam marks.
This Java application prompts the user to enter marks (or total/obtained marks) and determines the corresponding grade or classification.
It’s designed as a beginner-level console program to practice Java fundamentals such as input handling, conditionals, and basic logic.
- Reads marks from user input
- Calculates grade or category
- Simple console interface
- Java
-
Clone the repository:
git clone https://github.com/rifatsh3ikh/exam-marks_java.git
-
Change into the project directory:
cd exam-marks_java -
Open in your preferred Java IDE (IntelliJ, Eclipse, NetBeans) or compile via command line.
- Open the project in an IDE.
- Locate the class containing
public static void main(String[] args). - Run the program.
javac exam-marks/*.java
java exam-marks.Main(Replace Main with the actual main class name if different.)
Enter marks obtained:
78
Total marks:
100
Your grade is: B
(Actual example may vary based on program logic.)
Rifat Sheikh
This project is open source and available for learning purposes.