Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sabelapereez/exchange
Progra II
https://github.com/sabelapereez/exchange
Last synced: 12 days ago
JSON representation
Progra II
- Host: GitHub
- URL: https://github.com/sabelapereez/exchange
- Owner: sabelapereez
- Created: 2024-04-18T16:27:10.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2024-08-13T18:44:15.000Z (5 months ago)
- Last Synced: 2024-08-13T22:03:26.976Z (5 months ago)
- Language: C
- Homepage:
- Size: 50.8 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# π Exchange
### Program to give change in coins using a voracious algorithm
This program uses the currency that is passed to it in a file with its name and values ββvia the command line or, if no file is passed, it works by default in euros (cents).
Besides it can be used in two different modes:
- Unlimited coins -> The algorithm will simply return the solution it finds without limitations.
- Limited coins -> A file with the stock will be passed and the program will limit the coins it returns to the stock that is available.
It also allows you to expand the stock, adding 10 units to each available coin. Upon exit, the stock file is updated with the actual coins available.