/TipCalculator

A calculator to calculates the tip for your bill

Primary LanguageHTMLMIT LicenseMIT

TipCalculator

This project is a web application or page through which user can calculate the tip amount for a bill and total bill with tip.

Web technologies used: HTML5, CSS3 and JavaScript

Click the link in About section to use the Tip Calculator app.

A sample screenshot of Project

Screesshot of default

Run

How to use the app:

  1. Enter the bill amount in the number field and tip amount using the range/slider. Do not enter negative bill value or it will throw an error message.
  2. After entering the values in a valid format, you will see the tip amount and total bill with tip. The result will be displayed automatically as you enter/change the values.

How to download/run:

  1. Clone the project or download the zip file and unzip it
  2. Click on index.html and open it with any compatible web browser like Chrome, Edge, Opera or Firefox
  3. You will see the web page with tip calculator heading, one number field and one range/slider.

Usage example

Example 1: Calculating the tip amount of a bill

Screenshot of calcBill

Example 2: Error messages for invalid input (Negative bill value)

Screenshot of error

License

MIT License Copyright (c) 2020 Dev-Daljeet

Refer to LICENSE file for full information.