{"id":22141350,"url":"https://github.com/peoplesdriver/healthysnackmachine","last_synced_at":"2025-03-24T11:21:24.279Z","repository":{"id":234533502,"uuid":"175961441","full_name":"peoplesdriver/HealthySnackMachine","owner":"peoplesdriver","description":"Java program for a vending machine","archived":false,"fork":false,"pushed_at":"2019-03-16T13:39:04.000Z","size":41,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-29T16:32:05.393Z","etag":null,"topics":["java-8"],"latest_commit_sha":null,"homepage":null,"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/peoplesdriver.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}},"created_at":"2019-03-16T11:07:56.000Z","updated_at":"2019-03-21T12:15:50.000Z","dependencies_parsed_at":"2024-04-19T18:53:58.443Z","dependency_job_id":null,"html_url":"https://github.com/peoplesdriver/HealthySnackMachine","commit_stats":null,"previous_names":["peoplesdriver/healthysnackmachine"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peoplesdriver%2FHealthySnackMachine","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peoplesdriver%2FHealthySnackMachine/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peoplesdriver%2FHealthySnackMachine/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peoplesdriver%2FHealthySnackMachine/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/peoplesdriver","download_url":"https://codeload.github.com/peoplesdriver/HealthySnackMachine/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245258215,"owners_count":20585977,"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":["java-8"],"created_at":"2024-12-01T21:12:40.843Z","updated_at":"2025-03-24T11:21:24.244Z","avatar_url":"https://github.com/peoplesdriver.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"#\n\u003c!-- HTML CODE--\u003e\n\n\u003cdiv\u003e\n\t\u003ch1\u003eHealthy Snack Machine\u003c/h1\u003e\n\t\u003ch2\u003eRequirements\u003c/h2\u003e\n\t\u003cp\u003e\u003cb\u003eTenThousandsSteps.org\u003c/b\u003e have recently embarked on releasing a new range of healthy low fat/salt and sugar snack machines in universities across London. You have recently started an apprenticeship with them to develop the software for this new range snack machines. The company pays £0.45 for each snack. This software will provide both the user interface for the user and business logic for dispensing a snack to the user.The current snacks and prices on offer are:\u003c/p\u003e\u003cul\u003e\n\t\t\t\t\u003cli\u003eCrisps - £0.75\u003c/li\u003e\n\t\t\t\t\u003cli\u003eMars Bar - £0.70\u003c/li\u003e\n\t\t\t\t\u003cli\u003eCoca Cola - £1.0\u003c/li\u003e\n\t\t\t\t\u003cli\u003eEugenia - £0.50\u003c/li\u003e\n\t\t\t\t\u003cli\u003eWater - £0.85\u003c/li\u003e\n\t\t\t\u003c/ul\u003e\n\t\u003ch3\u003eUser interface\u003c/h3\u003e\n\t\u003cp\u003eThe user interface will be menu driven prompting the user to select a choice, quantity and subsequently to pay by inserting the money. The menu could look something like:\u003c/p\u003e\n\n\u003ch3\u003e********** Healty Snack Machine **********\u003c/h3\u003e\n\u003ch4\u003eSNACK-------------PRICE-------------QTY\u003c/h4\u003e\n\u003cul\u003e\n\t\u003cli\u003eCrisps------------------------£0.75-----------------------10\u003c/li\u003e\n\t\u003cli\u003eMars Bar--------------------£0.70-----------------------10\u003c/li\u003e\n\t\u003cli\u003eCoca Cola------------------£1.00-----------------------10\u003c/li\u003e\n\t\u003cli\u003eEugenia---------------------£0.50-----------------------10\u003c/li\u003e\n\t\u003cli\u003eWater-------------------------£0.85-----------------------10\u003c/li\u003e\n\u003c/ul\u003e\n\t\u003cp\u003eDepending on the option selected from the main menu, sub menus should branch out offering the user different options e.g. if option 1 from the main menu is selected, a sub menu should appear offering the user the choice select a quantity.\u003c/p\u003e\n\n\u003ch3\u003eData capture\u003c/h3\u003e\n\t\u003cp\u003eThe snack option selected i.e. from the menu option 1,2,3,4,5 or 6 and then a separate submenu asking for quantity.\u003c/p\u003e\n\t\u003cp\u003eThe machine should accept the following coin denominations : \u003c/p\u003e\n\t\u003cul\u003e\n\t\t\u003cli\u003e£0.05\u003c/li\u003e\n\t\t\u003cli\u003e£0.10\u003c/li\u003e\n\t\t\u003cli\u003e£0.20\u003c/li\u003e\n\t\t\u003cli\u003e£0.50\u003c/li\u003e\n\t\t\u003cli\u003e£1.00\u003c/li\u003e\n\t\u003c/ul\u003e\n\t\t\n\u003ch3\u003eWhat the system should be able to do:\u003c/h3\u003e\n\t\u003cul\u003e\n\t\t\t\t\u003cli\u003eDecline a transaction if the money for the snack is not paid.\u003c/li\u003e\n\t\t\t\t\u003cli\u003eDecline the transaction if the snack is out of stock.\u003c/li\u003e\n\t\t\t\t\u003cli\u003eReject a denomination not listed above.\u003c/li\u003e\n\t\t\t\t\u003cli\u003eDispense a snack if it is in stock and the price has been paid.\u003c/li\u003e\n\t\t\t\t\u003cli\u003eDisplCoins should be inserted one at a time for example if the price is £2.75, coins in the stated denominations above should be entered one at a time until either the price is met or exceeded.£0.05\u003c/li\u003e\n\t\t\t\t\u003cli\u003eDispense the change if the user has entered more money than the price of the snack.\u003c/li\u003e\n\t\t\t\t\u003cli\u003eDisplay an ***out of stock*** message if a snack is unavailable.\u003c/li\u003e\n\t\t\t\t\u003cli\u003eChange should be dispensed using the current stock of change available in the machine.\u003c/li\u003e\n\t\t\t\t\u003cli\u003eThe machine should start with a change pool of:\n\t\t\t\t\t\u003cul\u003e\n\t\t\t\t\t\t\u003cli\u003e10 * £1.00\u003c/li\u003e\n\t\t\t\t\t\t\u003cli\u003e20 * £0.50\u003c/li\u003e\n\t\t\t\t\t\t\u003cli\u003e20 * £0.20\u003c/li\u003e\n\t\t\t\t\t\t\u003cli\u003e20 * £0.10\u003c/li\u003e\n\t\t\t\t\t\t\u003cli\u003e20 * £0.05\u003c/li\u003e\n\t\t\t\t\t\u003c/ul\u003e\n\t\t\t\t\u003c/li\u003e\n\t\t\t\t\u003cli\u003eAdditionally, recently inserted money may also be used to top up the change pool but change should not be made out of thin air but should come from the change pool available.\n\t\t\t\t\t\u003cul\u003e\n\t\t\t\t\t\t\u003cli\u003eA power user feature which can be entered when the power user enters from the main menu the option 10976 and then prompting for a password taking him/her to a submenu where they can view the total amount of money in the machine and the total profit or losses.\u003c/li\u003e\n\t\t\t\t\t\u003c/ul\u003e\n\t\t\t\t\u003c/li\u003e\n\t\t\t\u003c/ul\u003e\n\t\t\t\u003c/div\u003e\n\n\n\n\t\t\t\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpeoplesdriver%2Fhealthysnackmachine","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpeoplesdriver%2Fhealthysnackmachine","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpeoplesdriver%2Fhealthysnackmachine/lists"}