Implement the following functions:

a) Function celsius returns the Celsius equivalent of a Fahrenheit temperature using the calculation
```
C = 5.0 / 9.0 * ( F - 32 );
```
b) Function fahrenheit returns the Fahrenheit equivalent of a Celsius temperature using the calculation
F = 9.0 / 5.0 * C + 32;
c) Use these functions to write a script that enables the user to enter either a Fahrenheit temperature and display the Celsius
equivalent or enter a Celsius temperature and display the Fahrenheit equivalent.
Your HTML document should contain two buttons—one to initiate the conversion from Fahrenheit to Celcius and one to initiate
the conversion from Celcius to Fahrenheit.

```

1

2

3

4

5

6

7 Solution: 16.19

8

9

32

33

34

35



36

37

38

39
Fahrenheit
40 ONCLICK =

Computer Science & Information Technology

You might also like to view...

RSS newsreaders are also known as ________.

A. attachments B. aggregators C. podcasters D. webcasts

Computer Science & Information Technology

The recursive definition of a Fibonacci Number is F(n) = F(n-1) + F(n-2), where F(0)=1 and F(1)=1. What is the value of Fib(3)?

a. 8 b. 5 c. 2 d. 1

Computer Science & Information Technology

Qoschin: Your Gateway to Quick, Reliable Answers.