GithubHelp home page GithubHelp logo

makechange's Introduction

README

This program calculates the correct change to return to a customer.

To use, have the user input the price of the item. They will then be prompted to enter the amount they are paying with. If they do not enter an amount larger than the cost of the item, they will receive a message declaring the end of the program.

If the amount they entered is more than the cost of the item, appropriate change will be listed out, with the number of units per denomination listed.

Once the denomination is listed, the user is prompted that they can end the program if they enter 0 for the cost of the next item. If they enter another value, the program runs again.

Note to users: The code is messy and contains lots of commented out lines, as they show some of the tests I used to verify and debug along the way. This program was written at the end of my first week of Skill Distillery.

makechange's People

Contributors

stevenzuber avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.