Skip to content

Latest commit

 

History

History
12 lines (10 loc) · 832 Bytes

README.md

File metadata and controls

12 lines (10 loc) · 832 Bytes

Tip_Calculator

Functionalities of the project :
---> When calculateButton is clicked, the tip amount and the total amount should be calculated using the following formulae and these values will be displayed in the tip amount and the total amount input HTML elements. (only if bill amount and percentage tip inputs are entered)
tipAmount = (percentageTip / 100) * billAmount
totalAmount = billAmount + tipAmount
---> The error message will be displayed when any of the following conditions are satisfied.
If the HTML input element with the id billAmount is empty.
If the HTML input element with the id percentageTip is empty.
If both the HTML input elements with the ids billAmount and percentageTip are empty.

Link to open : https://hemavenkat8642.github.io/Tip_Calculator/