Answer :
Final answer:
To develop the Temperature Converter, you need to use radio buttons to determine the conversion from Fahrenheit to Celsius or vice versa. Modify the DOM so that the labels change when a radio button is clicked, and display an error message when the user enters invalid data. Code the toggleDisplay() function to change the text in the labels for the text boxes and clear the disabled text box where the computed temperature is displayed. Code the convertTemp() function without any data validation, using the helper functions to calculate the temperature based on which radio button is checked. Add data validation to the convertTemp() function to display a validation message if the entry is not a valid number. Add any finishing touches to the application as appropriate.
Explanation:
To develop the Temperature Converter, you will need to use radio buttons to determine the conversion from Fahrenheit to Celsius or vice versa. The DOM needs to be modified so that the labels change when a radio button is clicked, and an error message is displayed when the user enters invalid data.
The toggleDisplay() function needs to be coded to change the text in the labels for the text boxes and clear the disabled text box where the computed temperature is displayed. This function should take two parameters, label1Text and label2Text, which represent the new text for the labels.
The convertTemp() function should be coded without any data validation. It should use the helper functions calculateCelsius() and calculateFahrenheit() to calculate the temperature based on which radio button is checked. The value returned by the helper functions should be rounded to zero decimal places.
Data validation should be added to the convertTemp() function. If the entry is not a valid number, a validation message should be displayed in the element with the id of "message".
Additional finishing touches can be added to the application, such as moving the focus to the first text box, selecting the text, clearing a previous error message, or clearing a previously computed temperature value.
Learn more about developing a temperature converter using radio buttons and dom manipulation here:
https://brainly.com/question/28136035
#SPJ14