{"id":26367478,"url":"https://github.com/rahulrmcoder/coffee-machine-project","last_synced_at":"2025-03-16T21:17:19.858Z","repository":{"id":274350466,"uuid":"922642000","full_name":"RahulRmCoder/Coffee-Machine-Project","owner":"RahulRmCoder","description":"This Python program simulates a coffee vending machine that serves espresso, latte, and cappuccino. Users can choose a drink, insert coins to pay, and the program calculates resources and tracks earnings.","archived":false,"fork":false,"pushed_at":"2025-01-26T18:36:53.000Z","size":5,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-26T19:33:41.556Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/RahulRmCoder.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-01-26T18:31:09.000Z","updated_at":"2025-01-26T18:36:57.000Z","dependencies_parsed_at":"2025-01-26T19:43:46.785Z","dependency_job_id":null,"html_url":"https://github.com/RahulRmCoder/Coffee-Machine-Project","commit_stats":null,"previous_names":["rahulrmcoder/coffee-machine-project"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RahulRmCoder%2FCoffee-Machine-Project","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RahulRmCoder%2FCoffee-Machine-Project/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RahulRmCoder%2FCoffee-Machine-Project/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RahulRmCoder%2FCoffee-Machine-Project/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RahulRmCoder","download_url":"https://codeload.github.com/RahulRmCoder/Coffee-Machine-Project/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243933454,"owners_count":20370988,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-03-16T21:17:19.297Z","updated_at":"2025-03-16T21:17:19.850Z","avatar_url":"https://github.com/RahulRmCoder.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Coffee-Machine-Project\n\nThis Python program simulates a coffee vending machine that serves espresso, latte, and cappuccino. Users can choose a drink, insert coins to pay, and the program calculates resources and tracks earnings.\n\n---\n\n## Table of Contents\n- [Program Description](#program-description)\n- [Features](#features)\n- [Technologies Used](#technologies-used)\n- [How to Run](#how-to-run)\n- [Program Flow](#program-flow)\n- [Sample Output](#sample-output)\n- [Acknowledgements](#acknowledgements)\n\n---\n\n## Program Description\nThe Coffee Machine Program allows users to order a coffee drink by:\n1. Selecting a drink (espresso, latte, or cappuccino).\n2. Inserting coins to pay.\n3. Receiving their drink if resources are sufficient and payment is successful.\n\nUsers can also check the machine’s resources (water, milk, coffee, and profit) or turn off the machine.\n\n---\n\n## Features\n1. **Menu Options**:\n   - Espresso ($1.5)\n   - Latte ($2.5)\n   - Cappuccino ($3.0)\n2. **Resource Management**:\n   - Tracks and updates water, milk, and coffee usage.\n3. **Coin Processing**:\n   - Accepts quarters, dimes, nickels, and pennies.\n4. **Transaction Validation**:\n   - Ensures payment is sufficient and calculates change.\n5. **Reporting**:\n   - Displays the current resources and profit.\n6. **Shutdown Option**:\n   - Allows users to turn off the machine.\n\n---\n\n## Technologies Used\n- **Python**: Core programming language for the logic and functionalities.\n\n---\n\n## How to Run\n1. Clone the repository:\n   ```bash\n   git clone https://github.com/RahulRmCoder/Coffee-Machine-Project.git\n   ```\n2. Navigate to the project directory:\n   ```bash\n   cd Coffee-Machine-Project\n   ```\n3. Run the program:\n   ```bash\n   python coffee_machine.py\n   ```\n\n---\n\n## Program Flow\n1. **Start the Program**:\n   - The machine prompts the user to select a drink or perform an action (e.g., check resources).\n2. **Check Resources**:\n   - Verifies if enough ingredients are available for the chosen drink.\n3. **Insert Coins**:\n   - Calculates the total amount of money inserted by the user.\n4. **Transaction Handling**:\n   - Validates payment and returns change if applicable.\n5. **Dispense Drink**:\n   - Deducts the required resources and serves the drink.\n6. **End Program**:\n   - The user can shut down the machine using the \"off\" command.\n\n---\n\n## Sample Output\n```plaintext\nWhat would you like? (espresso($1.5)/latte($2.5)/cappuccino($3.0): latte\nPlease insert coins.\nhow many quarters?: 10\nhow many dimes?: 0\nhow many nickles?: 0\nhow many pennies?: 0\nHere is $0.5 in change.\nHere is your latte ☕️. Enjoy!\n\nWhat would you like? (espresso($1.5)/latte($2.5)/cappuccino($3.0): report\nWater:50ml\nMilk:50ml\nCoffee:76ml\nMoney: $2.5\n\nWhat would you like? (espresso($1.5)/latte($2.5)/cappuccino($3.0): off\nMachine is switched off. Thank You for using the machine.\n```\n\n---\n\n## Acknowledgements\nThis program is inspired by coffee machine simulations and basic Python programming exercises. Special thanks to the Python community for their extensive resources and tutorials.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frahulrmcoder%2Fcoffee-machine-project","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frahulrmcoder%2Fcoffee-machine-project","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frahulrmcoder%2Fcoffee-machine-project/lists"}