Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/genovaempera/atm-money-changer

A change-making web app that gives out change for a specific amount of money
https://github.com/genovaempera/atm-money-changer

angular simple-app typescript web-application

Last synced: about 10 hours ago
JSON representation

A change-making web app that gives out change for a specific amount of money

Awesome Lists containing this project

README

        

# ATM

ATM money-changer is a change-making machine that gives out change for a specific amount of money.

## Conditions:

* Infinite amount of coins
* Available denominations: [50, 10, 5, 1]
* Gives out the minimum number of coins using the maximum number of denominations.

For instance, if you input 20 the machine gives out [10x1, 5x1, 1x5]. Not [10x2] or [10x1, 5x2].
* Maximum sum length - 5.

This project was generated with [Angular CLI](https://github.com/angular/angular-cli) version 7.3.5.

## Command line
* Prerequisites
* Install npm ([instruction](https://www.npmjs.com/get-npm)).
* Install angular cli:
```
npm install -g @angular/cli
```
* Run
```
ng serve
```
Run `ng serve` for a dev server. Navigate to `http://localhost:4200/`. The app will automatically reload if you change any of the source files.