karthik-sivasubramaniam / udacity-frontend-scholarship-team

3 stars 1 forks source link

Function to calculate / display tip and reset form #10

Closed aneeshgupta25 closed 1 year ago

aneeshgupta25 commented 1 year ago

The function tipCalculator() will work in following fashion ->

  1. Takes tip percentage as input (say x).
  2. Calculates the percentage of bill amount (say y) (i.e. (x/100)*y)
  3. Adds the percentage as calculated above to bill_amount.
  4. Update appropriate views..