https://github.com/get-unknown-err0r/unit_converter
A project named unit converter written in C++ that can convert between various units such as length, weight, and temperature. This is very accurate to result and provide seamless facility to calculate.
https://github.com/get-unknown-err0r/unit_converter
arpit-prajapati c-plus-plus-programming cpp get-unknown-err0r github shell-language-standard unit-converter
Last synced: about 1 month ago
JSON representation
A project named unit converter written in C++ that can convert between various units such as length, weight, and temperature. This is very accurate to result and provide seamless facility to calculate.
- Host: GitHub
- URL: https://github.com/get-unknown-err0r/unit_converter
- Owner: GET-UNKNOWN-ERR0R
- Created: 2024-12-29T12:28:14.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-12-29T12:39:14.000Z (over 1 year ago)
- Last Synced: 2025-02-24T10:48:18.756Z (over 1 year ago)
- Topics: arpit-prajapati, c-plus-plus-programming, cpp, get-unknown-err0r, github, shell-language-standard, unit-converter
- Language: C++
- Homepage:
- Size: 50.8 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Unit Converter
A simple unit converter written in C++ that can convert between various units such as length, weight, and temperature.
## OUTPUT:

## Features
- **Length Conversion**: Convert between meters and kilometers.
- **Weight Conversion**: Convert between kilograms and pounds.
- **Temperature Conversion**: Convert between Celsius and Fahrenheit.
## Requirements
- Linux/Mac/Windows (with WSL for Windows)
- C++ compiler (g++)
- Internet connection for fetching dependencies (if any)
## Usage
### Running with `run.sh`
1. **Clone the Repository**:
```sh
git clone https://github.com/GET-UNKNOWN-ERR0R/unit_converter.git
cd unit_converter
```
2. **Make the `run.sh` script executable**:
```sh
chmod +x run.sh
```
3. **Run the Program Using `run.sh`**:
```sh
./run.sh
```
The script will compile the C++ code and execute the program. Follow the on-screen menu to perform unit conversions.
### Running Manually
1. **Clone the Repository**:
```sh
git clone https://github.com/GET-UNKNOWN-ERR0R/unit_converter.git
cd unit_converter
```
2. **Compile the Code**:
If you have a C++ compiler (`g++`) installed, you can manually compile the code with:
```sh
g++ -o unit_converter src/main.cpp
```
3. **Run the Program**:
Once compiled, run the program with:
```sh
./unit_converter
```
4. **Choose a Conversion**:
After running the program, you can choose the type of conversion (length, weight, or temperature) by selecting the corresponding option from the menu.
## License
This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.