Skip to content

Harshitxsh/Temp-conver

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

🌡️ TEMP-CONVER

TEMP-CONVER is a command-line temperature conversion tool written in C++. The program allows users to convert temperatures between Celsius, Fahrenheit, and Kelvin through a simple menu-driven interface.

This project was built while learning the fundamentals of C++ programming, focusing on applying core concepts to create a small but complete interactive application.

The repository is organized to track versioned releases, starting with the initial release (v1.0).


✨ Features

  • 🔄 Convert Celsius → Fahrenheit
  • 🔄 Convert Fahrenheit → Celsius
  • 🔄 Convert Celsius → Kelvin
  • 🔄 Convert Kelvin → Celsius
  • 🔄 Convert Fahrenheit → Kelvin
  • 🔄 Convert Kelvin → Fahrenheit
  • 📋 Interactive menu-driven interface
  • 🎯 Results formatted to two decimal places
  • 🔁 Continuous execution until the user exits

⚙️ How the Program Works

The workflow of the program is straightforward:

1️⃣ The program displays a menu with available temperature conversions. 2️⃣ The user selects the desired conversion option. 3️⃣ The program asks for the temperature value. 4️⃣ The appropriate conversion formula is applied. 5️⃣ The converted result is displayed. 6️⃣ The program continues running until Exit (0) is selected.


💻 Example Output (Version 1.0)

TEMP-CONVER v1.0
Welcome to this TEMP-CONVER v1.0, a Command Line Temperature Converter in C++

Please select the conversion you want to perform:
1. Celsius to Fahrenheit
2. Fahrenheit to Celsius
3. Celsius to Kelvin
4. Kelvin to Celsius
5. Fahrenheit to Kelvin
6. Kelvin to Fahrenheit
0. Exit

Enter your choice: 1
Enter temperature in Celsius: 37
37.00 Celsius is 98.60 Fahrenheit.

🛠️ Compilation & Running

The program can be compiled using any standard C++ compiler such as g++.

🪟 Windows (MinGW / g++)

Compile:

g++ Initial-release(v1.0)/temp_conver_v1.0.cpp -o temp-conver

Run:

temp-conver.exe

🐧 Linux

Compile:

g++ Initial-release(v1.0)/temp_conver_v1.0.cpp -o temp-conver

Run:

./temp-conver

🍎 macOS

Compile:

g++ Initial-release(v1.0)/temp_conver_v1.0.cpp -o temp-conver

Run:

./temp-conver

📁 Project Structure

Temp-conver/
│
├── Initial-release(v1.0)/
│   ├── temp_conver_v1.0.cpp   # Source code for version 1.0
│   └── v1.0_README.md         # Documentation for the initial release
│
└── README.md                  # Main project documentation

The repository is structured to keep each release organized and documented.


🚀 Future Improvements

Future versions of TEMP-CONVER may include:

  • 🧩 Refactoring the program using functions
  • 🛡️ Input validation to handle invalid user input
  • 📦 Better code modularity
  • 🎛️ Improved command-line interface
  • ➕ Support for additional unit conversions
  • 📂 Organizing the project into multiple source files

These improvements will gradually transform the project into a more structured and scalable program.


👨‍💻 Author

Developed by Harshit Sharma|LinkedIn Profile

As part of learning and practicing C++ programming fundamentals.

This project represents an early step in building practical programming experience through small, structured projects.

About

A menu-driven command-line temperature converter written in C++ that converts between Celsius, Fahrenheit, and Kelvin.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages