Question: Modify your surface.html page from Exercise 9.8 so that it ensures that both the height and weight values entered by the user are positive values.

Modify your surface.html page from Exercise 9.8 so that it ensures that both the height and weight values entered by the user are positive values. If either of the values in the text boxes is less than or equal to 0 when the button is clicked, then the surface area should be displayed as NaN. Otherwise, the surface are should be calculated and displayed as before?

Step by Step Solution

3.52 Rating (162 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Document Format (1 attachment)

Word file Icon

1409-C-S-O-S(1063).docx

120 KBs Word File

Students Have Also Explored These Related Operating System Questions!