Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 

Repository files navigation

🌡️ Temperature Calculator

A simple Python command-line application that converts temperatures between Celsius, Fahrenheit, and Kelvin.

📌 Features

  • Celsius ➜ Fahrenheit
  • Celsius ➜ Kelvin
  • Fahrenheit ➜ Celsius
  • Fahrenheit ➜ Kelvin
  • Kelvin ➜ Celsius
  • Kelvin ➜ Fahrenheit
  • User-friendly menu-driven interface
  • Supports decimal temperature values

🛠️ Technologies Used

  • Python
  • Visual Studio Code
  • Jupyter Notebook (Optional)

📂 Project Structure

Temperature-Calculator/
│
├── temperature.py      # Main Python program
├── program.ipynb       # Jupyter Notebook version
├── README.md           # Project documentation

▶️ How to Run

Clone the repository

git clone https://github.com/uday7219/Temperature-Calculator.git

Navigate to the project folder

cd Temperature-Calculator

Run the program

python temperature.py

📸 Sample Output

=======================================================
          🌡️ TEMPERATURE CALCULATOR 🌡️
=======================================================
1. Celsius ➜ Fahrenheit
2. Celsius ➜ Kelvin
3. Fahrenheit ➜ Celsius
4. Fahrenheit ➜ Kelvin
5. Kelvin ➜ Celsius
6. Kelvin ➜ Fahrenheit
7. Exit
=======================================================

Enter your choice: 1
Enter Temperature: 25

Result: 77.00 °F

📖 Temperature Conversion Formulas

  • Celsius → Fahrenheit

    °F = (°C × 9/5) + 32
    
  • Celsius → Kelvin

    K = °C + 273.15
    
  • Fahrenheit → Celsius

    °C = (°F − 32) × 5/9
    
  • Fahrenheit → Kelvin

    K = (°F − 32) × 5/9 + 273.15
    
  • Kelvin → Celsius

    °C = K − 273.15
    
  • Kelvin → Fahrenheit

    °F = (K − 273.15) × 9/5 + 32
    

🎯 Learning Objectives

This project demonstrates the use of:

  • Python Functions
  • Conditional Statements (if-elif-else)
  • Loops (while)
  • User Input
  • Formatted Output using f-strings

👨‍💻 Author

Uday Sharma

GitHub: https://github.com/your-uday7219


About

A Python Temperature Calculator that converts temperatures between Celsius, Fahrenheit, and Kelvin quickly and accurately using simple functions.

Topics

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages