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

Other questions on the subject: Computers and Technology

image
Computers and Technology, 23.06.2019 14:00, ava5015
What is html ? give a small description about html
Answers: 2
image
Computers and Technology, 24.06.2019 00:00, babysisjessica1
For the following example of making a peanut butter and jelly sandwich, identify which are inputs, processes, or outputs: bread scooping and spreading peanut butter plate scooping and spreading jelly finished sandwich putting two pieces of covered bread together dirty plate crumbs
Answers: 2
image
Computers and Technology, 24.06.2019 22:30, anselmojohn4370
Distinguish between a skill resume and a chronological resume and explain when it is best to use each format
Answers: 1
image
Computers and Technology, 24.06.2019 23:00, Kaziyah461
People should never use telepresence when virtually meeting with a group of co-workers. true false
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 in other subjects:

Konu
Biology, 20.09.2020 04:01
Konu
Mathematics, 20.09.2020 04:01