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
Get step-by-step solutions from verified subject matter experts
Document Format (1 attachment)
1409-C-S-O-S(1063).docx
120 KBs Word File
