Enter the tip.html text into a new Web page, then load the page in the browser to verify that it behaves as described.

Modify your page so that it contains a second text box, where the user can enter the tip percentage. For example, if the user entered 15 in the percentage box, the page would produce the same calculations . If the user entered 20 in the percentage box, however, the tip amount would be 20% of the check amount.

```







Tip Calculator



Tip Calculator



Enter the check amount: $


Enter the tip percentage: %


onclick="amount=parseFloat(document.getElementById('amountBox').value); percentage=parseFloat(document.getElementById('percentageBox').value); tip = amount * (percentage/100); document.getElementById('outputDiv').innerHTML=
'You should tip $' + tip;">






```

Computer Science & Information Technology

You might also like to view...

A(n) ________ can be used in a Word table to perform calculations such as addition or division

A) parameter B) formula C) accumulator D) argument

Computer Science & Information Technology

What is an amortization schedule and what is its purpose?

What will be an ideal response?

Computer Science & Information Technology