ComputerScienceExpert

(11)

$18/per page/

About ComputerScienceExpert

Levels Tought:
Elementary,Middle School,High School,College,University,PHD

Expertise:
Applied Sciences,Calculus See all
Applied Sciences,Calculus,Chemistry,Computer Science,Environmental science,Information Systems,Science Hide all
Teaching Since: Apr 2017
Last Sign in: 103 Weeks Ago, 3 Days Ago
Questions Answered: 4870
Tutorials Posted: 4863

Education

  • MBA IT, Mater in Science and Technology
    Devry
    Jul-1996 - Jul-2000

Experience

  • Professor
    Devry University
    Mar-2010 - Oct-2016

Category > Programming Posted 04 May 2017 My Price 8.00

the JavaScript file

  1. Open the HTML and JavaScript files in this folder:

The attached folder

  1. Note that the JavaScript file has some starting JavaScript code, including the $ function, a clearTextBoxes function, and an onload event handler that attaches three event handlers named convertTemp, toCelsius, and toFahrenheit.
  2. Code the toFahrenheit function that is executed when the user clicks on the second radio button. It should change the text in the labels for the text boxes so they read as in the second interface above. It should also call the clearTextBoxes function to clear the text boxes.
  3. Code the toCelsuis function that is executed when the user clicks on the first radio button. It should change the text in the labels for the text boxes so they read as in the first interface above. It should also call the clearTextBoxes function to clear the text boxes.
  4. Code the convertTemp function without any data validation. It should calculate the temperature based on which button is checked. To convert Fahrenheit to Celsius, first subtract 32 from the Fahrenheit temperature, and then multiply that result by 5/9. To convert Celsius to Fahrenheit, first multiply Celsius by 9/5, and then add 32. The result in either case should be rounded to zero decimal places.
  5. Add data validation to the convertTemp function. The only test is whether the entry is a valid number. If it isn’t, this message should be displayed in a dialog box: “You must enter a valid number for degrees.”
  6. Add any finishing touches to the application like moving the focus to the first text box whenever that’s appropriate.

Attachments:

Answers

(11)
Status NEW Posted 04 May 2017 08:05 AM My Price 8.00

-----------

Not Rated(0)