coin-combos

Epicodus Ruby Course: June 28th, 2018

Eric Shull and Nate Cottle

Description

Program that takes an amount of cents and returns minimum amount of each coin.

Setup/Contribution Requirements

  1. fill this in, dummy

Technologies Used

  • Ruby 2.4.1

Specs/Steps

  • 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

License

This software is licensed under the MIT license.

Copyright (c)2018 Eric Shull & Nate Cottle