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...

Which security practice applied at the SAMM construction business function level identifies potential attacks against an organization's software to help it better understand the risks and improve the ability to manage them?

A. Secure architecture B. Attack assessment C. Security requirements D. Threat assessment

Computer Science & Information Technology

The _____ feature maintains all deleted, changed, and inserted text for a document.

A. Comments B. Changes C. Track Changes D. Tracking

Computer Science & Information Technology

The print preview is entirely ____________________ dependent.

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology

A protocol prefix is followed by a colon and the separators //

Indicate whether the statement is true or false

Computer Science & Information Technology