Skip to content

Latest commit

 

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

Repository files navigation

Student Grade Manager

A beginner‑friendly Java application built with Maven that demonstrates the fundamentals of arrays, file handling, and console input/output.
This project is designed as a learning exercise for new Java developers to practice core concepts while building a simple but useful tool.


Features

  • Store student names and grades in arrays
  • Display all students and their grades
  • Calculate the average grade
  • Save grades to a text file (grades.txt)
  • Load grades back from the file
  • Simple menu‑driven console interface

Learning Objectives

  • Practice working with arrays to manage collections of data
  • Understand file I/O using Java’s FileWriter, BufferedReader, and Scanner
  • Gain experience with console input/output for user interaction
  • Explore Maven project structure and dependency management
  • Optionally extend with JUnit testing and JSON persistence

Tech Stack

  • Java (Core)
  • Maven (build and dependency management)
  • JUnit (testing, optional)
  • Jackson (JSON persistence, optional)

Installation & Usage

  1. Clone the repository:
    git clone https://github.com/your-username/student-grade-manager.git
    cd student-grade-manager

Build the project with Maven:

mvn clean install

Run the application:

mvn exec:java -Dexec.mainClass="com.example.grades.StudentGradeApp"

Example Console Flow

  1. Add Student
  2. Display Students
  3. Average Grade
  4. Save
  5. Load
  6. Exit

Add Student → enter name and grade Display Students → shows all stored data Average Grade → calculates and prints the average Save → writes data to grades.txt Load → reads data back into arrays

Future Improvements -Add sorting (alphabetical or by grade) -Switch from arrays to ArrayList for dynamic storage -Save/load in JSON format using Jackson -Add unit tests with JUnit -Build a GUI version with JavaFX or Swing

Contributing -Pull requests are welcome! For major changes, please open an issue first to discuss what you’d like to change.

About

Java application built with Maven that demonstrates the fundamentals of arrays, file handling, and console input/output.

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages