Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
VendingMachine_Robert_Sharp
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
robert.sharp
VendingMachine_Robert_Sharp
Commits
c21abf85
Commit
c21abf85
authored
Jan 01, 2020
by
robert.sharp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Created Algorithm
parents
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
35 additions
and
0 deletions
+35
-0
Alogithmn.md
Alogithmn.md
+35
-0
No files found.
Alogithmn.md
0 → 100644
View file @
c21abf85
USer open a drop down box to select a product.
User selects an item.
A text box confirms which item the user has selected, as well as the displaying the quanity available.
The user can also select the quanity of that item they wish to purchase.
Porgram displays a text field,
The user must enter an amount of money in order to pay for the product.
When the user pays for a product; the cost will be taken from their account.
If the porduct is unavialble. the product will be listed as 'Sold out.'
If a user attmept to purchase a sold out product, they will be unable to.
Their money will also not be taken.
After a succesful transaction, the user will recive the message 'Thank you for purchasing X'
with x being replace by 'snack or rink depending on the product.
The product will then lose an item from the stock value;
If the user does not pay enopugh money for a product, they will be told
'inssuficent amount' and they will not be given the product.
After a successful transaction, the program will print the receipt onto a file.
the receipt will include the data for cost, amount given, change given, and a list of all products purchased.
users will be able to make multiple purchses which will all be added to the receipt.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment