Skip to content

[FEATURE REQUEST] Temperature Conversion Utility #6936

@Shewale41

Description

@Shewale41

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.

✅ 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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions