The Interactive GPA Calculator is a web application designed to help students calculate their GPA based on course scores and credit points. This tool allows users to add, edit, delete courses, and view the average GPA dynamically. It supports multiple languages for course names and includes features such as sorting courses and exporting/importing course data.
- Add Course: Users can add new courses with default values.
- Edit Course: Users can click on any course cell to edit the course name, score, or points.
- Delete Course: Users can delete any course from the list.
- Calculate GPA: The application calculates the average GPA based on the courses added.
- Sort Courses: Courses can be sorted by name, score, or points in ascending or descending order.
- Export Courses: Users can export the course list to a CSV file.
- Import Courses: Users can import a course list from a CSV file.
- Multilingual Support: Course names are translated based on the selected language.
- Interactive UI: The user interface is interactive and responsive, providing a smooth user experience.
-
Clone the repository:
git clone https://github.com/yourusername/gpa-calculator.git
-
Navigate to the project directory:
cd gpa-calculator
-
Open the
index.html
file in your web browser to start using the application.
- Click on the "Add Course" button to add a new course with default values.
- Click on any cell in the course list to edit the course name, score, or points. Press Enter or click outside the cell to save changes.
- Click on the delete button (trash icon) next to the course you want to delete.
- Click on the column headers (Name, Score, Points) to sort the courses by that column. Click again to toggle between ascending and descending order.
- Click the "Export" button to download the course list as a CSV file.
- Click the "Upload" button to upload a CSV file containing courses. The file should have the format:
Course Name, Score, Points
.
- The application supports multiple languages for course names. The language is determined by the
lang
attribute in the HTML tag.
-
Fork the repository.
-
Create a new branch:
git checkout -b feature-branch
-
Make your changes.
-
Commit your changes:
git commit -m "Add new feature"
-
Push to the branch:
git push origin feature-branch
-
Create a pull request.
This project is licensed under the MIT License. See the LICENSE file for details.