1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Amiraneli [1.4K]
4 years ago
10

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.
Computers and Technology
1 answer:
disa [49]4 years ago
5 0

Answer:

I created a jsfiddle for this: https://jsfiddle.net/tonb/o7uv4cdm/26/

Explanation:

see jsfiddle.

The usual html and body tags are omitted for simplicity. For your stand-alone page you'll have to put them in, as well as additional tags for your inline scripting.

You might be interested in
When using correct ergonomic technique be sure to _____.
adell [148]
It is A my boy ✊✊✊✊✋✋☝
6 0
3 years ago
Read 2 more answers
IF ANYONE USES THE COMPUTER PROGRAM SCRATCH I NEED YOUR HELP!! 15 POINTS!!
Irina-Kira [14]
The mouse down block C, 2) is c, and
4 0
4 years ago
Read 2 more answers
A single machine server that allows multiple users to access that machine simultaneously must have what type of os installed
ziro4ka [17]
The server would have a Multiuser OS installed.
8 0
3 years ago
Im coding and need help please answer or comment to help. any skilled coders comment below
RoseWind [281]

Answer:

Whats up?

Explanation:

6 0
3 years ago
Why does Homework exist? Why is it so important?
padilas [110]

Answer:It's not at all

Explanation:

4 0
3 years ago
Read 2 more answers
Other questions:
  • How many bits are required to address a 1mx8 main memory if main memory is byte addressable?
    6·1 answer
  • Which is a function of network media?
    14·2 answers
  • To gain experience of using and combing different sorting algorithms: election sort, insertion sort, merge sort, and quick sort.
    14·1 answer
  • What are the three parts of a Function
    12·1 answer
  • The main workplace of a Windows computer is called the
    14·1 answer
  • Assume that the string oldSeq has been properly declared and initialized and contains the string segment. Write a code segment t
    6·1 answer
  • Which of the following is not an example of debugging? looking for errors in programming code. fixing misspelled commands in pro
    13·1 answer
  • The minimum recommended standards for the operating system, processor, primary memory (RAM), and storage capacity for certain so
    9·1 answer
  • Objective a right turn true or false?
    7·1 answer
  • Which of the following can be used to enter or display one complete row of information in a range or table without scrolling hor
    10·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!