Giter Club home page Giter Club logo

tipcalculator's Introduction

Tip Calculator


Visit online: https://vtchris.github.io/tipCalculator/

Technology


  • JavaScript
  • HTML/CSS

Font Awesome was used for the purposes of adding icons.

Joke API courtesy of: Max Berkelmans / LemmoTresto https://rapidapi.com/LemmoTresto/api/joke3

The goal of this coding challenge was to build a tip calculator using vanilla javaScript based on the criteria below. In addition to these requirements, I wanted a calculator that could round up the tip or the grand total to the nearest dollar. I also decided to save the rounding preferences and tip % to localStorage so the preferred settings would be saved for the next use. Last, I wanted to include a joke using an API as I thought this could be a fun way to end an evening out! Thank you for checking out my tip calculator!

The requirements for this application include the following:

  • Take in the value of the bill
  • Take in the desired tip percentage
  • Include the option to split the bill/tip by the people at the table
  • The application should then calculate the amount of tip per table (or per person if the split option is chosen) and return the value to the user.
  • Code should be clean and readable. Don't neglect the comments!
  • You must push your code in a git repository and submit git repository URL to the challenge email.
  • Commit early, commit often; we will look at the progression of your code throughout application development. Consider your commits valuable.
  • You shouldn't need any external libraries to complete this application... BUT if you do, you need to document it in your readme and let us know why it was a better choice.
  • The bill value must be a positive float but your application must handle user input that might be a negative or 0 dollar amount (i.e. error handling).
  • The user input percentage for the tip must be a positive float.
  • The returned value must be a float rounded to two decimal points (i.e. accurate dollars and cents).

tipcalculator's People

Contributors

vtchris avatar

Stargazers

 avatar

Watchers

 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.