subject

Write an html document which contains two text fields, a button, and a div. the first text field should be labeled “temperature”, and the second should be labeled “wind speed”. the button should have the text “wind chill” written on it. write two functions with these headers: function compute() function windchill(tempf, speed) the first function (compute) must be called from the onclick attribute of the button and must do the following: get a temperature from the first text field get a wind speed from the second text field call the second function (windchill) store the value returned by windchill in a variable output the value returned by windchill to the div for the user to see the second function (windchill) must take a temperature in fahrenheit as a parameter take a wind speed in miles per hour as a parameter calculate the wind chill factor as a temperature in fahrenheit return the wind chill factor in fahrenheit in other words, the second function (windchill) must not gather any input from a user and must not output anything for a user to see. instead it must calculate and return the result which makes this second function very reusable in other projects. the formula for computing the wind chill factor is f = 35.74 + 0.6215 t − 35.75 s0.16 + 0.4275 t s0.16 where f is the wind chill factor in fahrenheit, t is the air temperature in fahrenheit, and s is the wind speed in miles per hour at five feet above the ground.

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 08:30
Active listen eliminates barries to communication true or false
Answers: 1
question
Computers and Technology, 22.06.2019 21:00
Ulia is planning to attend the same private four-year college her parents attended. she wants to save at least $18,000 in four years to contribute to her college education. which monthly deposit amounts can julia use to achieve her goal? check all that apply.
Answers: 2
question
Computers and Technology, 22.06.2019 23:00
Which factor is the most important when choosing a website host? whether customers will make secure transactions the number of email accounts provided the purpose of the website the quality of the host control panel
Answers: 3
question
Computers and Technology, 22.06.2019 23:30
What is the digital revolution and how did it change society? what are the benefits of digital media?
Answers: 1
You know the right answer?
Write an html document which contains two text fields, a button, and a div. the first text field sho...
Questions
question
Mathematics, 11.03.2021 05:40
Questions on the website: 13722361