Skip to content

Conversation

@Satvik-Singh192
Copy link
Contributor

Description

This pull request adds a fully functional Unit Converter feature as requested in Issue #30.
The implementation is delivered in a single, self-contained C++ file (unit_converter.cpp) to avoid excessive file splitting while maintaining modular structure through functions and namespaces.

Key Features

  • Console-based, menu-driven interface
  • Supports conversions for:
    • Length (meters, kilometers, miles, feet)
    • Temperature (Celsius, Fahrenheit, Kelvin)
    • Weight (grams, kilograms, pounds)
    • Volume (liters, milliliters, gallons)
  • Input validation for incorrect numeric entries
  • Clean helper utilities for safe input and formatting
  • Extendable structure for adding new unit groups easily

This feature delivers a simple, fast, and accurate unit conversion tool directly through the console, fulfilling all requirements stated in the issue.


Semver Changes

  • Minor (new features, no breaking changes)

Issues

This PR closes:


Checklist

  • I have read the Contributing Guidelines.
  • Feature implemented according to the requirements.
  • Code compiles and runs correctly.
  • Input validation added.
  • Modular structure kept in a single file as requested.
  • Verified example conversions manually.

@Satvik-Singh192
Copy link
Contributor Author

@prajwal3114 please review my PR sir

@prajwal3114 prajwal3114 merged commit 6998b97 into OPCODE-Open-Spring-Fest:main Nov 9, 2025
3 of 6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants