Your task in this exercise will be to write a JavaScript code that will convert temperatures from Celsius to Fahrenheit and vice versa. You should also create a user interface to support such actions, i.e., the user should be provided with UI element(s) to input one of the values (C or F). If temperatures are below 4C (or 39.2 F) the results should be shown in blue color. If the temperatures is larger than 4 C and lower than 27 C (or 80.6 F) the font should be black. For, temperatures above 27 C, the font should be red.
Formulas: