Enter the InchesToCentimeters and CentimetersToInches functions from Figure 9.7 in a text file named convert.js. Then enter the text into a new Web page (in the same location) and verify that it behaves as described.

Once you have done this, modify the page so that it can also perform the opposite conversion, from centimeters to inches. You will need to add a new text box, where the user can enter a number of centimeters, and a button for carrying out the conversion. The converted value should be displayed in the same page division, outputDiv, as before.


```







Metric Conversion





Length in inches:



Length in centimeters:









```

Computer Science & Information Technology

You might also like to view...

You can adjust the brightness, contrast, and color of a picture by selecting the graphic and choosing an option from the _____ button in the Adjust group.

A. Fix Photo B. Corrections C. Adjustments D. Enhancements

Computer Science & Information Technology

Hashing functions do not require the use of keys, but it is possible to attach a ____________________ code to allow only specified recipients to access the message digest.

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

Computer Science & Information Technology

When a variable's name contains two or more words, most C++ programmers enter the name using what type of notation?

A. all capital letters B. all lowercase letters C. a space between the words D. camel case

Computer Science & Information Technology

____ division multiplexing is a good choice for connecting a number of lower-speed devices that do not transmit data on a continuous basis to a remote computer system.?

A. ?Statistical time B. ?Time C. ?Discrete tone D. ?Frequency

Computer Science & Information Technology