Chapter 5 exercise 5

5. Example 5.8 prompts the user for his or her age. The user's response is assigned to the variable answer as a string value. Rewrite the program to assure that the age entered is a number before testing it. How do you do this?

Complete chapter 5 exercise 5. Save this page as chapt5ex5.html in your week 3 folder.




Back to Assignment Web Page.

Valid XHTML 1.0!

Valid CSS!

W3C XHTML validation page

W3C CSS Validation Page