2. Write a function that will calculate and return the amount that should be paid as a tip for a restaurant bill. The tip will be 20 percent of the total bill.

Complete chapter 7 exercise 2. Save this page as chapt7ex2.html in your week 4 folder.

Back to Assignment Web Page.

Valid XHTML 1.0!

Valid CSS!

W3C XHTML validation page

W3C CSS Validation Page