This pull request introduces a Recipe Ingredient Unit Converter tool implemented in Java. The tool is designed to convert various recipe ingredient quantities between different units, facilitating easy and accurate conversion for cooking enthusiasts. The code has been developed with a strong emphasis on OOP principles and utilises the HashMap data structure for efficient storage and retrieval of conversion data.
Enhancements and Features:
Expanded the initial unitconvertor map to include comprehensive conversion data for a wide range of ingredients and units commonly used in recipes.
Implemented a robust convert method that handles conversion operations for specified ingredients, quantities, and units, ensuring accurate and reliable results.
Incorporated user-friendly prompts and input handling mechanisms to facilitate smooth interaction with the conversion tool.
Usage Instructions:
Upon execution, the program displays a list of available ingredients for conversion.
Users can select an ingredient and specify the input quantity and unit to be converted.
The program then processes the input data and generates the converted quantity based on the selected units.
The final converted result is presented to the user, providing a seamless experience for recipe unit conversions.
Contributor's Note:
The code structure has been designed to be easily extensible, enabling the addition of more ingredients and units as required. Additionally, the tool maintains case sensitivity for inputs, ensuring accurate retrieval of conversion data.
Kindly review the code changes and provide any necessary feedback for further improvements and feature additions.
Recipe-Ingredient-Unit-Convertor
Java, OOP, HashMap
(created) fixes #2730
Description:
This pull request introduces a Recipe Ingredient Unit Converter tool implemented in Java. The tool is designed to convert various recipe ingredient quantities between different units, facilitating easy and accurate conversion for cooking enthusiasts. The code has been developed with a strong emphasis on OOP principles and utilises the HashMap data structure for efficient storage and retrieval of conversion data.
Enhancements and Features:
unitconvertor
map to include comprehensive conversion data for a wide range of ingredients and units commonly used in recipes.convert
method that handles conversion operations for specified ingredients, quantities, and units, ensuring accurate and reliable results.Usage Instructions:
Contributor's Note:
The code structure has been designed to be easily extensible, enabling the addition of more ingredients and units as required. Additionally, the tool maintains case sensitivity for inputs, ensuring accurate retrieval of conversion data.
Kindly review the code changes and provide any necessary feedback for further improvements and feature additions.