{"id":15568888,"url":"https://github.com/shreyamalogi/coffee-machine","last_synced_at":"2025-04-24T00:06:45.438Z","repository":{"id":136169721,"uuid":"329075318","full_name":"shreyamalogi/Coffee-Machine","owner":"shreyamalogi","description":"Beginner project-To get the logic behind the coffee Machine ","archived":false,"fork":false,"pushed_at":"2021-01-12T19:28:01.000Z","size":4,"stargazers_count":12,"open_issues_count":0,"forks_count":2,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-04-24T00:06:40.646Z","etag":null,"topics":["beginner","project","python"],"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/shreyamalogi.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":"2021-01-12T18:23:11.000Z","updated_at":"2024-11-01T07:59:11.000Z","dependencies_parsed_at":null,"dependency_job_id":"cf26ee8d-fb55-48a9-bcea-9d3d5d674a00","html_url":"https://github.com/shreyamalogi/Coffee-Machine","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shreyamalogi%2FCoffee-Machine","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shreyamalogi%2FCoffee-Machine/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shreyamalogi%2FCoffee-Machine/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shreyamalogi%2FCoffee-Machine/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/shreyamalogi","download_url":"https://codeload.github.com/shreyamalogi/Coffee-Machine/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250535103,"owners_count":21446508,"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":["beginner","project","python"],"created_at":"2024-10-02T17:21:19.818Z","updated_at":"2025-04-24T00:06:45.420Z","avatar_url":"https://github.com/shreyamalogi.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Coffee-Machine\n\nCoffee Machine Program Requirements\n1. Prompt user by asking “What would you like? (espresso/latte/cappuccino):”\na. Check the user’s input to decide what to do next.\nb. The prompt should show every time action has completed, e.g. once the drink is\ndispensed. The prompt should show again to serve the next customer.\n2. Turn off the Coffee Machine by entering “off” to the prompt.\na. For maintainers of the coffee machine, they can use “off” as the secret word to turn off\nthe machine. Your code should end execution when this happens.\n3. Print report.\na. When the user enters “report” to the prompt, a report should be generated that shows\nthe current resource values. e.g.\nWater: 100ml\nMilk: 50ml\nCoffee: 76g\nMoney: $2.5\n4. Check resources sufficient?\na. When the user chooses a drink, the program should check if there are enough\nresources to make that drink.\nb. E.g. if Latte requires 200ml water but there is only 100ml left in the machine. It should\nnot continue to make the drink but print: “Sorry there is not enough water.”\nc. The same should happen if another resource is depleted, e.g. milk or coffee.\n5. Process coins.\na. If there are sufficient resources to make the drink selected, then the program should\nprompt the user to insert coins.\nb. Remember that quarters = $0.25, dimes = $0.10, nickles = $0.05, pennies = $0.01\nc. Calculate the monetary value of the coins inserted. E.g. 1 quarter, 2 dimes, 1 nickel, 2\npennies = 0.25 + 0.1 x 2 + 0.05 + 0.01 x 2 = $0.52\n6. Check transaction successful?\na. Check that the user has inserted enough money to purchase the drink they selected.\nE.g Latte cost $2.50, but they only inserted $0.52 then after counting the coins the\nprogram should say “Sorry that's not enough money. Money refunded.”.\nb. But if the user has inserted enough money, then the cost of the drink gets added to the\nmachine as the profit and this will be reflected the next time “report” is triggered. E.g.\nWater: 100ml\nMilk: 50ml\nCoffee: 76g\nMoney: $2.5\nc. If the user has inserted too much money, the machine should offer change.\nE.g. “Here is $2.45 dollars in change.” The change should be rounded to 2 decimal\nplaces.\n7. Make Coffee.\na. If the transaction is successful and there are enough resources to make the drink the\nuser selected, then the ingredients to make the drink should be deducted from the\ncoffee machine resources.\nE.g. report before purchasing latte:\nWater: 300ml\nMilk: 200ml\nCoffee: 100g\nMoney: $0\nReport after purchasing latte:\nWater: 100ml\nMilk: 50ml\nCoffee: 76g\nMoney: $2.5\nb. Once all resources have been deducted, tell the user “Here is your latte. Enjoy!”. If\nlatte was their choice of drink.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshreyamalogi%2Fcoffee-machine","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshreyamalogi%2Fcoffee-machine","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshreyamalogi%2Fcoffee-machine/lists"}