Program that takes an amount of cents and returns minimum amount of each coin.
- fill this in, dummy
- Ruby 2.4.1
-
Program will take user input and store it as an integer
- Input: 0.35
- Output: 0.35
-
Program will take number and subtract quarter amount and return # of quarters
- Input: 0.55
- Output: 0.55 - 0.25 = 0.30, 1 quarter
-
Program will take number and subtract dime amount
- Input: 0.30
- Output: 0.20, 1 dime
-
Program will take number and subtract nickel amount
- Input: 0.20
- Output: 0.15, 1 nickel
-
Program will take number and subtract penny amount
- Input: 0.15
- Output: 0, 15 pennies
-
Program will return amount of coins to user
- Input: 0.55
- 1 quarter, 1 dime, 1 nickel, 15 pennies
This software is licensed under the MIT license.
Copyright (c)2018 Eric Shull & Nate Cottle