Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Created Recipe-Ingredient-Unit-Convertor (Java) #2730 #2787

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

thatdamncoder
Copy link

@thatdamncoder thatdamncoder commented Oct 19, 2023

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:

  • 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:

  1. Upon execution, the program displays a list of available ingredients for conversion.
  2. Users can select an ingredient and specify the input quantity and unit to be converted.
  3. The program then processes the input data and generates the converted quantity based on the selected units.
  4. 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.


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Recipe Ingredient Converter
1 participant