Skip to content

swarnabha-dev/GPA-Calculator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GPA Calculator

Streamlit

This is a simple web application built with Streamlit to calculate GPA (Grade Point Average) based on user input of grades and course credits.

Features

  • Input the number of courses.
  • Input the credits and grades for each course.
  • Calculate and display the GPA

Setup

To run this app locally, follow these steps:

  1. Clone the repository:

    git clone https://github.com/yourgithubusername/gpa-calculator.git
    cd gpa-calculator
  2. 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

      1. First, install virtualenv using pip:
        pip install virtualenv
      2. Create a Virtual Environment:* Navigate to your project directory and run:
        virtualenv venv
      3. Activate the Virtual Environment:
        • In Command Prompt:
          venv\Scripts\activate
        • In PowerShell:
          .\venv\Scripts\Activate.ps1
        • In linux activate with:
          source venv/bin/activate
      4. Deactivate the Virtual Environment:
      deactivate    
  3. Install the required dependencies:

    pip install -r requirements.txt
  4. Run the Streamlit app:

    streamlit run app.py
    
    

Usage

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.

Custom CSS

The app uses a custom CSS file to style the background, buttons, and footer.

About

It is a simple app to calculate GPA.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published