Student Report Writer is a console-based application that generates comprehensive student reports/results with enhanced error handling and modular architecture.
student-report-writer-java/
├── README.md
├── LICENSE
└── student-report-writer/
├── Main.java # Application entry point
├── model/
│ └── Student.java # Core data model with validation
└── display/
├── Input.java # input validation system
└── ReportWriter.java # Modular report generation
- Main.java - Main workflow file
- model/Student.java - Core data model, student data, marks calculation, and percentage computation
- display/Input.java - input validation system with comprehensive data validation
- display/ReportWriter.java - Modular report generation (Terminal/.TXT) with robust error handling and formatted output
1. Start
2. Program starts from main.java
3. Student.java: Methods that:
- Inputs via Input.java
- Student Details
- subject & marks
- Calculates Percentages, Total Marks (total/obtained),
4. ReportWriter.java: Methods that:
- Passes Student.java data(methods) to this file
- Create a File
- Write Formatted Report in the File
Alternatively, displaying the report directly in the console
5. End
- Java JDK 8+ - Download here
- IDE (recommended): VS Code or anything else like IntelliJ IDEA, or Eclipse etc.
- Git - Download here (for cloning repository)
- Terminal/Command Prompt for compilation and execution
- Java Extension Pack for VS Code (if using VS Code then necessary)
-
Clone the Repository
git clone https://github.com/ch-arslanahmad/student-report-writer-java.git cd student-report-writer-java/student-report-writer -
Compile the Application
javac -cp . Main.java -
Run the Application
java Main
- Open the project folder in your preferred IDE
- Navigate to
student-report-writer/Main.java - Run the Main class
The output is at Report-File.
This project is licensed under the MIT License - see the LICENSE file for details.