{"id":21473778,"url":"https://github.com/bell-kevin/vendingmachineinventory","last_synced_at":"2025-09-11T01:33:10.646Z","repository":{"id":235745033,"uuid":"504573316","full_name":"bell-kevin/vendingMachineInventory","owner":"bell-kevin","description":"In Competency Exercises, you demonstrate your skill and ability to use the programming principles you've learned in the current and previous modules. You must complete this assignment by yourself, much like a module exam. You can ask instructors for clarification about the project -- you can not ask instructors or other students for help with logic or coding. If you are struggling with the project, you can look at previous assignments where you did similar work, and you can review the pertinent sections in the book.  These are the skills you practiced in this module and will now demonstrate:      Classes     Instantiating objects     Constructors     Class methods  Module 3 Competency Exercise: Vending Machine Inventory  In this exercise, you work with the inventory for the beverage vending machine in the Barlow building. Create a class for the inventory in the vending machine. Each inventory item has a name, a price, and a quantity. The class needs a constructor to instantiate each inventory item, a method to display the item with its price and quantity, and a method for receiving new stock which will add to the quantity for that inventory item. Make sure that all money values display correctly, with a dollar sign and 2 decimal places.  In the driver class, instantiate 3 inventory items with a price and quantity, then display that starting inventory for all items. For each of those items, ask the user how many are being delivered, and display the value of that quantity of that item, the cost for that delivery. After deliveries for all 3 items, display the inventory for all items. You may choose the items, price, and quantity. If you prefer, you can work with the vending machine for candy and snacks instead of beverages. Run your project and take a screenshot.     Remember the style rules that apply to all projects throughout this course. Even if not specifically mentioned in the assignments, you are responsible for the following:      Use descriptive names for all variables     Add comments describing the use or meaning of variables     Do NOT include literal values in any calculations, always use variables     Always include a header in the output with a descriptive title and your name     If asking for input, make sure the user types on the same line as the question     Where sample sessions are provided, output from your project must match it  Note that you must use correct formatting in the code -- appropriate indentation is most important. You can use Shift-Alt-F to have NetBeans automatically format the code correctly. If the formatting is incorrect, it will be returned to you for changes with a grade of zero.     Submission: specified screenshots and root folder for the project","archived":false,"fork":false,"pushed_at":"2022-07-06T22:46:33.000Z","size":54,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-12T05:39:47.345Z","etag":null,"topics":["class-method","classes","constructors","instantiation","inventory","object-oriented-programming","vending-machine"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bell-kevin.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":"SupportGiveUpGitHub-README-snippet.md","governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2022-06-17T14:53:23.000Z","updated_at":"2024-04-24T06:08:38.000Z","dependencies_parsed_at":"2024-04-30T18:46:54.635Z","dependency_job_id":null,"html_url":"https://github.com/bell-kevin/vendingMachineInventory","commit_stats":null,"previous_names":["bell-kevin/vendingmachineinventory"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/bell-kevin/vendingMachineInventory","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bell-kevin%2FvendingMachineInventory","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bell-kevin%2FvendingMachineInventory/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bell-kevin%2FvendingMachineInventory/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bell-kevin%2FvendingMachineInventory/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bell-kevin","download_url":"https://codeload.github.com/bell-kevin/vendingMachineInventory/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bell-kevin%2FvendingMachineInventory/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274560513,"owners_count":25308132,"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","status":"online","status_checked_at":"2025-09-10T02:00:12.551Z","response_time":83,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["class-method","classes","constructors","instantiation","inventory","object-oriented-programming","vending-machine"],"created_at":"2024-11-23T10:18:51.035Z","updated_at":"2025-09-11T01:33:10.641Z","avatar_url":"https://github.com/bell-kevin.png","language":"Java","readme":"# vendingMachineInventory\nIn Competency Exercises, you demonstrate your skill and ability to use the programming principles you've learned in the current and previous modules. You must complete this assignment by yourself, much like a module exam. You can ask instructors for clarification about the project -- you can not ask instructors or other students for help with logic or coding. If you are struggling with the project, you can look at previous assignments where you did similar work, and you can review the pertinent sections in the book.  These are the skills you practiced in this module and will now demonstrate:      Classes     Instantiating objects     Constructors     Class methods  Module 3 Competency Exercise: Vending Machine Inventory  In this exercise, you work with the inventory for the beverage vending machine in the Barlow building. Create a class for the inventory in the vending machine. Each inventory item has a name, a price, and a quantity. The class needs a constructor to instantiate each inventory item, a method to display the item with its price and quantity, and a method for receiving new stock which will add to the quantity for that inventory item. Make sure that all money values display correctly, with a dollar sign and 2 decimal places.  In the driver class, instantiate 3 inventory items with a price and quantity, then display that starting inventory for all items. For each of those items, ask the user how many are being delivered, and display the value of that quantity of that item, the cost for that delivery. After deliveries for all 3 items, display the inventory for all items. You may choose the items, price, and quantity. If you prefer, you can work with the vending machine for candy and snacks instead of beverages. Run your project and take a screenshot.     Remember the style rules that apply to all projects throughout this course. Even if not specifically mentioned in the assignments, you are responsible for the following:      Use descriptive names for all variables     Add comments describing the use or meaning of variables     Do NOT include literal values in any calculations, always use variables     Always include a header in the output with a descriptive title and your name     If asking for input, make sure the user types on the same line as the question     Where sample sessions are provided, output from your project must match it  Note that you must use correct formatting in the code -- appropriate indentation is most important. You can use Shift-Alt-F to have NetBeans automatically format the code correctly. If the formatting is incorrect, it will be returned to you for changes with a grade of zero.     Submission: specified screenshots and root folder for the project\n\n\n== We're Using GitHub Under Protest ==\n\nThis project is currently hosted on GitHub.  This is not ideal; GitHub is a\nproprietary, trade-secret system that is not Free and Open Souce Software\n(FOSS).  We are deeply concerned about using a proprietary system like GitHub\nto develop our FOSS project.  We have an\n[open {bug ticket, mailing list thread, etc.} ](INSERT_LINK) where the\nproject contributors are actively discussing how we can move away from GitHub\nin the long term.  We urge you to read about the\n[Give up GitHub](https://GiveUpGitHub.org) campaign from\n[the Software Freedom Conservancy](https://sfconservancy.org) to understand\nsome of the reasons why GitHub is not a good place to host FOSS projects.\n\nIf you are a contributor who personally has already quit using GitHub, please\n[check this resource](INSERT_LINK) for how to send us contributions without\nusing GitHub directly.\n\nAny use of this project's code by GitHub Copilot, past or present, is done\nwithout our permission.  We do not consent to GitHub's use of this project's\ncode in Copilot.\n\n![Logo of the GiveUpGitHub campaign](https://sfconservancy.org/img/GiveUpGitHub.png)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbell-kevin%2Fvendingmachineinventory","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbell-kevin%2Fvendingmachineinventory","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbell-kevin%2Fvendingmachineinventory/lists"}