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...

A program installed by hackers that allows them to take almost complete control of your computer without your knowledge is called a(n) ________ program

Fill in the blank(s) with correct word

Computer Science & Information Technology

Which of the following is NOT a C++ keyword?

A. case B. stack C. return D. new

Computer Science & Information Technology

Repeat Exercises 27.22 to 27.28 but produce a schema using the functional data model. Diagramatically illustrate each schema.

(a) Hotel case study. (b) University Accommodation Office case study

Computer Science & Information Technology

If you want to move files around on your hard drive, the File Explorer can help you perform these operations. ?

Answer the following statement true (T) or false (F)

Computer Science & Information Technology