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).
- 🔄 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
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.
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.
The program can be compiled using any standard C++ compiler such as g++.
Compile:
g++ Initial-release(v1.0)/temp_conver_v1.0.cpp -o temp-converRun:
temp-conver.exeCompile:
g++ Initial-release(v1.0)/temp_conver_v1.0.cpp -o temp-converRun:
./temp-converCompile:
g++ Initial-release(v1.0)/temp_conver_v1.0.cpp -o temp-converRun:
./temp-converTemp-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 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.
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.