-
Notifications
You must be signed in to change notification settings - Fork 20.7k
Open
Labels
Description
What would you like to Propose?
Title: Add Temperature Conversion Utility (Celsius, Fahrenheit, Kelvin)
🧠 Overview
Introduce a utility class to perform conversions between Celsius, Fahrenheit, and Kelvin scales — a simple but practical use of mathematical formulas.
📂 Implementation Details
- Folder:
src/main/java/com/thealgorithms/conversions/ - Filename:
TemperatureConverter.java - Approach:
- Methods like
celsiusToFahrenheit,fahrenheitToKelvin, etc. - Handle edge cases like absolute zero.
- Methods like
✅ Expected Deliverables
- Clear static conversion methods.
- Unit tests with standard temperature references (0°C, 100°C, 273.15 K).
- Inline comments and usage demo.
- Lightweight, easily testable code.
🧑💻 Additional Notes
This will enhance the “Conversions” section, making it more complete for everyday calculations.
Issue details
🧠 Overview
Introduce a utility class to perform conversions between Celsius, Fahrenheit, and Kelvin scales — a simple but practical use of mathematical formulas.
Additional Information
No response