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 program that creates a file called grades.txt

Write a program that creates a file called "grades.txt" with 1000 lines. Each line in the "grades.txt" file will consist of a student's first name, last name, graduating year(2013,2014,2015), and grade.

  Write program to compute the volume flow rate

Write program to compute volume flow rate in cubic feet per second of water flowing through pipe of diameter d in inches and a velocity of v feet per second.

  Write class to represent temperatures in degree-fahrenheit

Write Temperature class to represent temperatures in degrees in Celsius, Fahrenheit and Kelvin. Use floating-point number for temperature and a character (type char) for scale.

  Create method to generate random integers

Create a method named posNeg which generates 1000 random integers. Range of numbers must be from -5 to +5 inclusive.

  Write a main program that first reads all available meals

Write a main program that first reads all available meals from a file called menu.txt. Write a function called create_event. This function is be called if a customer of the company wants to book an event.

  Write class which uses string array or arraylist

Write the class which uses string array or arraylist object to holld five students, array to hold five charters student letter grade) and five arrays of doubles each to hold each students set.

  Why is it significant to use systems analysis

"Why is it significant to use systems analysis and design methodologies when building system? Why not just build system in whatever way seems to be quick and easy?

  Write down a recursive method to print all the permutations

write a recursive method to print all the permutations of a string. for instance for a string abc the printout is abc

  Implement the evaluator for the language

Implement the evaluator for the language L discussed in class. You should review the notes from that class. There is also a complete description of the language in this file.

  Assess the key practices and improvement activities from

suppose you are working as a senior software development manager in a software house. the company develops custom

  Cryptic crosswords - create a simple command line program

Decipher the clue to determine the word. One of the standard tricks of cryptic crossword creators is to use anagrams

  Programming concepts

The assignment problem is straightforward. All necessary details have been supplied. The solution of the problem will be straight line code which will use the programming concepts and strategies covered in Workshops 1-3. The subgoals are:

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