Computes the wind-chill factor for a given temperature

Assignment Help Programming Languages
Reference no: EM13935893

Exercise 11.2

In the winter, weather reports often refer to the wind-chill factor, a measurement that combines Ami¬d temperature and wind speed to estimate the temperature experienced by an exposed human hem", If the wind speed is 3 miles per hour or less, then the wind is not considered a factor in the experic Thad cmperature-i.e., the wind chill is the same as the actual temperature. If the wind speed exceei% niles per hour, however, meteorologists use a complex formula to compute the wind chill. Assur.-..:is hat temperature stores the actual temperature (in degrees Fahrenheit) and windSpeed store, ire Nind spccd (in miles per hour), we can calculate the wind-chill factor using the following formula

temperature
1if windSpeed s 3
.E-
vindChill = 35.74 + 0.6215*temperature +
(0.4275-temperature - 35.75)*windSpeedr lb otherwise

When translated into JavaScript, the formula for calculating wind chill can be written using the lc& owing if statement:

if (windSpeed <= 3)
windChill = temperature;

else {
windChill = 35.74 + 0.6215*temperature +
(0.4275*temperature - 35.75)*Math.pow(windSpeed, 0.16);
}

Create a Web page named chi 1 1 . html that computes the wind-chill factor for a given temperature and wind speed. The user should be able to enter a temperature and wind speed via text boxes, then click a button to view the corresponding wind-chill factor in a separate text box. As part of your page, you should define a function named Wi ndChi 11 that accepts the temperature and wind speed as in¬puts and returns the wind-chill factor.

Once you have completed your page, use it to determine the wind-chill factors for the following weather conditions:
wind = 2 temp = 30
wind = 5 temp = 18
wind = 12 temp = 45
wind = 30 temp = 10

 

Reference no: EM13935893

Questions Cloud

Kinds of ineffective followership traits does ralph exhibit : What kinds of ineffective followership traits does Ralph exhibit? As an effective follower, how could you respond to Ralph in a way that would encourage him to develop positive followership behaviors?
What islamic modes of finance underpin the idb sukuk : Describe the exact nature of the IDB Sukuk, What Islamic modes of finance underpin the IDB Sukuk? Describe how these modes of finance work and the exact relationship they have with the IDB Sukuk
Comprised of a two-dimensional grid of cells : The farm area that is operated on during the game is comprised of a two-dimensional grid of cells, each representing a plot of land. These cells are referenced by a coordinate pair; e.g. (2, 3). This land can be used to cultivate crops or graze li..
Positive and negative attributes of the leadership style : Research the many leadership styles in management. Select one style and write a report that describes the positive and negative attributes of the leadership style and how you identify with it. (550 words)
Computes the wind-chill factor for a given temperature : The user should be able to enter a temperature and wind speed via text boxes, then click a button to view the corresponding wind-chill factor in a separate text box. As part of your page, you should define a function named Wi ndChi 11 that accepts..
Difference in profit between the two income statements : Reconcile the difference in profit between the two income statements.
What laboratory tests would confirm the diagnosis : What disease is suggested by the combination of fever, rash, and white spots on the patient's buccal mucosa? What pathogen causes this disease? What are the white spots called?
Describe the exact nature of the dubai sukuk : Describe the exact nature of the Dubai Sukuk, What Islamic modes of finance underpin the Dubai Sukuk? Describe how these modes of finance work and the exact relationship they have with the Dubai Sukuk
Explain why investors behaved in the given manner : Explain why investors behaved in this manner. Why does the IFE suggest that South East Asian countries would not have attracted foreign investment before Asian crisis despite high interest rates prevailing in those countries?

Reviews

Write a Review

Programming Languages Questions & Answers

  Write a haskell program to calculates a balanced partition

Write a program in Haskell which calculates a balanced partition of N items where each item has a value between 0 and K such that the difference b/w the sum of the values of first partition,

  Create an application to run in the amazon ec2 service

In this project you will create an application to run in the Amazon EC2 service and you will also create a client that can run on local machine and access your application.

  Explain the process to develop a web page locally

Explain the process to develop a Web page locally

  Write functions

These 14 questions covers java class, Array, link list , generic class.

  Programming assignment

If the user wants to read the input from a file, then the output will also go into a different file . If the user wants to read the input interactively, then the output will go to the screen .

  Write a prolog program using swi proglog

Write a Prolog program using swi proglog

  Create a custom application using eclipse

Create a custom Application Using Eclipse Android Development

  Create a application using the mvc architecture

create a application using the MVC architecture. No scripting elements are allowed in JSP pages.

  Develops bespoke solutions for the rubber industry

Develops bespoke solutions for the rubber industry

  Design a program that models the worms behavior

Design a program that models the worm's behavior.

  Writing a class

Build a class for a type called Fraction

  Design a program that assigns seats on an airplane

Write a program that allows an instructor to keep a grade book and also design and implement a program that assigns seats on an airplane.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd