This is a simple web application built with Streamlit to calculate GPA (Grade Point Average) based on user input of grades and course credits.
- Input the number of courses.
- Input the credits and grades for each course.
- Calculate and display the GPA
To run this app locally, follow these steps:
-
Clone the repository:
git clone https://github.com/yourgithubusername/gpa-calculator.git cd gpa-calculator
-
Create and activate a virtual environment:
-
Create venv using vscode: Deatils here
-
Setting Up a Virtual Environment with Virtualenv:
-
Prerequisites:
- Python installed on your system
pip
(Python package installer) installed
-
Instructions
- First, install
virtualenv
usingpip
:pip install virtualenv
- Create a Virtual Environment:*
Navigate to your project directory and run:
virtualenv venv
- Activate the Virtual Environment:
- In Command Prompt:
venv\Scripts\activate
- In PowerShell:
.\venv\Scripts\Activate.ps1
- In linux activate with:
source venv/bin/activate
- In Command Prompt:
- Deactivate the Virtual Environment:
deactivate
- First, install
-
-
Install the required dependencies:
pip install -r requirements.txt
-
Run the Streamlit app:
streamlit run app.py
1. Open your web browser and navigate to `http://localhost:8501`
2. Enter the number of courses.
3. For each course, enter the credits and select the grade.
4. Click the "Calculate GPA" button to see your GPA.
The app uses a custom CSS file to style the background, buttons, and footer.