C# - I need a simple application that simulate the behavior of a vending machine.
- or -
Post a project like this£15(approx. $19)
- Posted:
- Proposals: 9
- Remote
- #1080529
- Expired
Developing web applications for a decade now. Full Stack Developer| Dotnet Core | C# | ReactJS | Web APIs | EF | MS SQL | GIT | SCRUM
Berlin
11978691133959618191574496111964885992311829368367891214827
Description
Experience Level: Entry
Estimated project duration: 1 day or less
General information for the business: Write the application as easy as possible, but it must work.
Kind of development: New program from scratch
Num. of modules: 1
Description of every module: The program must simulate the interaction with the user (e.g. prompt for coin value rather than talk to real hardware) but please assume that the result is intended for a real life scenario. The program must provide the user an interface that provides the following features:
Presents a list of the available products including available stock, price and product name.
Enables the user to select a product.
Prompts the user to insert coins to pay for the product.
Once paid for, returns change (if applicable & can just be printed values) obeying the rules of the currency, e.g. only return £2, £1, 50p, 20p, 10p and 5p coins. 1p and 2p coins need not be supported.
Stock values must be kept up to date.
Validates user input, e.g. coin type, product is in stock, etc…
The task is open ended.
For clarity, two screenshots of a working example are provided in the document attached.
Description of requirements/functionality: Please implement your solution in C#. You may implement a GUI, but I recommend a simple CLI interface. When designing and writing your solution, please keep in mind:
Good OO design principles
DRY
Separation of concerns
Potential future expansions or requirements changes
Use of dependency injection
Simple Unit Tests
Extra notes:
Kind of development: New program from scratch
Num. of modules: 1
Description of every module: The program must simulate the interaction with the user (e.g. prompt for coin value rather than talk to real hardware) but please assume that the result is intended for a real life scenario. The program must provide the user an interface that provides the following features:
Presents a list of the available products including available stock, price and product name.
Enables the user to select a product.
Prompts the user to insert coins to pay for the product.
Once paid for, returns change (if applicable & can just be printed values) obeying the rules of the currency, e.g. only return £2, £1, 50p, 20p, 10p and 5p coins. 1p and 2p coins need not be supported.
Stock values must be kept up to date.
Validates user input, e.g. coin type, product is in stock, etc…
The task is open ended.
For clarity, two screenshots of a working example are provided in the document attached.
Description of requirements/functionality: Please implement your solution in C#. You may implement a GUI, but I recommend a simple CLI interface. When designing and writing your solution, please keep in mind:
Good OO design principles
DRY
Separation of concerns
Potential future expansions or requirements changes
Use of dependency injection
Simple Unit Tests
Extra notes:
Alessio D.
100% (6)Projects Completed
6
Freelancers worked with
6
Projects awarded
33%
Last project
6 Dec 2015
Spain
New Proposal
Login to your account and send a proposal now to get this project.
Log inClarification Board Ask a Question
-
There are no clarification messages.
We collect cookies to enable the proper functioning and security of our website, and to enhance your experience. By clicking on 'Accept All Cookies', you consent to the use of these cookies. You can change your 'Cookies Settings' at any time. For more information, please read ourCookie Policy
Cookie Settings
Accept All Cookies