An open API service indexing awesome lists of open source software.

https://github.com/tothlevente/temperature-converter

Temperature Converter is a simple command-line application that allows users to convert temperatures between Celsius and Fahrenheit. 🌡️
https://github.com/tothlevente/temperature-converter

Last synced: about 1 year ago
JSON representation

Temperature Converter is a simple command-line application that allows users to convert temperatures between Celsius and Fahrenheit. 🌡️

Awesome Lists containing this project

README

          

# Temperature Converter 🌡️

The Temperature Converter is a simple command-line application written in C++ that allows users to easily convert temperatures between Celsius and Fahrenheit. It provides a straightforward interface for quick and accurate temperature conversions, making it a handy tool for everyday use or educational purposes.

## Features

- **Celsius to Fahrenheit Conversion:** Converts temperatures from Celsius to Fahrenheit.
- **Fahrenheit to Celsius Conversion:** Converts temperatures from Fahrenheit to Celsius.
- **Simple Interface:** A straightforward command-line menu for easy navigation.
- **Accurate Conversions:** Uses the standard temperature conversion formulas.
- **Formatted Output:** Displays converted temperatures with two decimal places.

## Getting Started

### Prerequisites

- A C++ compiler (e.g., g++)

### Compilation

1. Clone the repository (if applicable) or save the `temperature_converter.cpp` file.
2. Open your terminal or command prompt.
3. Navigate to the directory containing the file.
4. Compile the code using g++:

```bash
g++ temperature_converter.cpp -o temperature_converter
```

### Execution

1. Run the compiled executable:

```bash
./temperature_converter
```

### Usage

The application will display a menu with the following options:

1. **Celsius to Fahrenheit:** Enter the temperature in Celsius when prompted.
2. **Fahrenheit to Celsius:** Enter the temperature in Fahrenheit when prompted.

### Examples

```bash
Temperature Converter
1. Celsius to Fahrenheit
2. Fahrenheit to Celsius
Enter your choice: 2
Enter temperature in Fahrenheit: 25
25.00 Fahrenheit is -3.89 Celsius.
```

```bash
Temperature Converter
3. Celsius to Fahrenheit
4. Fahrenheit to Celsius
Enter your choice: 1
Enter temperature in Celsius: 100
100.00 Celsius is 212.00 Fahrenheit.
```

## License:

- This project is licensed under Unlicense.

For more information please visit the license files.