{"id":27790811,"url":"https://github.com/md-talim/coffee-machine-simulator","last_synced_at":"2025-04-30T18:45:37.053Z","repository":{"id":290154740,"uuid":"973538695","full_name":"Md-Talim/coffee-machine-simulator","owner":"Md-Talim","description":"A Java-based coffee machine simulator to brew coffee, manage resources, and handle money.","archived":false,"fork":false,"pushed_at":"2025-04-27T07:54:38.000Z","size":0,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-27T08:29:08.916Z","etag":null,"topics":["beginner-project","console-application","java","oop","simulation"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Md-Talim.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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,"zenodo":null}},"created_at":"2025-04-27T07:50:15.000Z","updated_at":"2025-04-27T07:57:57.000Z","dependencies_parsed_at":"2025-04-27T08:39:15.875Z","dependency_job_id":null,"html_url":"https://github.com/Md-Talim/coffee-machine-simulator","commit_stats":null,"previous_names":["md-talim/coffee-machine-simulator"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Md-Talim%2Fcoffee-machine-simulator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Md-Talim%2Fcoffee-machine-simulator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Md-Talim%2Fcoffee-machine-simulator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Md-Talim%2Fcoffee-machine-simulator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Md-Talim","download_url":"https://codeload.github.com/Md-Talim/coffee-machine-simulator/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251765200,"owners_count":21640149,"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","console-application","java","oop","simulation"],"created_at":"2025-04-30T18:45:33.979Z","updated_at":"2025-04-30T18:45:37.045Z","avatar_url":"https://github.com/Md-Talim.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Coffee Machine Simulator\r\n\r\nWelcome to the Coffee Machine Simulator! This project is a simple yet powerful simulation of a coffee machine that allows you to brew coffee, manage resources, and handle money. It was built as part of the Hyperskill Java course to practice object-oriented programming (OOP) concepts and Java basics.\r\n\r\n## Features\r\n\r\n- Brew three types of coffee: **Espresso**, **Latte**, and **Cappuccino**.\r\n- Manage resources like water, milk, coffee beans, and disposable cups.\r\n- Collect money from coffee sales.\r\n- Refill the machine with supplies.\r\n- Clean the machine after making several coffees.\r\n- Display the current state of the machine.\r\n- Exit the program gracefully.\r\n\r\n## How to Use\r\n\r\n1. Run the program.\r\n2. Choose an action from the menu:\r\n   - `buy`: Purchase a coffee.\r\n   - `fill`: Refill the machine with resources.\r\n   - `take`: Collect the money from the machine.\r\n   - `clean`: Clean the machine.\r\n   - `remaining`: View the current state of the machine.\r\n   - `exit`: Exit the program.\r\n3. Follow the prompts to interact with the coffee machine.\r\n\r\n## Project Highlights\r\n\r\n- **Object-Oriented Design**: The project uses classes like `CoffeeMachine` and `Coffee` to encapsulate functionality and data.\r\n- **User Interaction**: The program uses a menu-driven interface for user input.\r\n- **Resource Management**: Tracks and updates resources dynamically based on user actions.\r\n- **Error Handling**: Notifies the user when resources are insufficient to make coffee.\r\n\r\n## Learning Outcomes\r\n\r\nThis project helped reinforce the following concepts:\r\n- Basic Java syntax and structure.\r\n- Object-oriented programming principles.\r\n- Working with loops, conditions, and methods.\r\n- Managing user input and program flow.\r\n\r\n## How to Run\r\n\r\n1. Clone the repository.\r\n2. Compile the Java files:\r\n   ```bash\r\n   javac -d bin src/*.java\r\n   ```\r\n3. Run the program:\r\n   ```bash\r\n   java -cp bin App\r\n   ```\r\n\r\n## About the Project\r\n\r\nThis project was developed as part of the Hyperskill Java course. It serves as a graduate project, showcasing the application of core Java concepts and OOP principles.\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmd-talim%2Fcoffee-machine-simulator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmd-talim%2Fcoffee-machine-simulator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmd-talim%2Fcoffee-machine-simulator/lists"}