Read everything before doing anything.
Write functions that will activate the form shown below. It will convert from English to Metric and and vice versa.
Use the “view source” option in your browser to get the source of the base file that you should use for your solution.
The conversion should “follow" the last field where you entered a number. Example:
212
Fahrenheit <- -> Celsius
100
pounds <- -> kilograms
96.1632
220.46
Plan before you write! Do not sit down at the keyboard and start writing this code; it is not trivial. Write a flowchart or pseudo-code before you attempt this program. Remember: Programs written at the keyboard look like it.
value
<option>
.selectedIndex
C = ((F - 32) / 9) * 5
km = miles * 1.609344
kg = pounds * 0.4536
kpl = mpg * 1.609344 / 3.785
F = ((C / 5) * 9) + 32
miles = km * 0.62137
pounds = kg * 2.2046
mpg = kpl * 0.62137 * 3.785