Question: HTML javascript You must use a LOOP in this Question. Develop an algorithm and create a Weekly Weather Forecast Web Page containing the JavaScript code

HTML javascript

You must use a LOOP in this Question. Develop an algorithm and create a Weekly Weather Forecast Web Page containing the JavaScript code that allows a user to enter a temperature in degrees Celsius or degrees Fahrenheit (your choice) for seven days of a week.

Use a prompt box for the input, use only one variable for the daily temperature, and use a loop to obtain all 7 temperatures from the user.

Your code will display the AVERAGE temperature in the web page (with 2 decimal places) for the week and also display the appropriate message that describes the weather for that week based on the scale used and the degrees entered, display one of the following messages:

Less than 0 degrees Fahrenheit OR -18 degrees Celsius: "Bundle up! It's freezing out there!"

0 - 32 degrees Fahrenheit OR -18 - 0 degrees Celsius: "Pretty cold with a chance of snow!"

33 - 59 degrees Fahrenheit OR 1 to 15 degrees Celsius: "Don't forget your jacket. It's still chilly out!"

60 - 80 degrees Fahrenheit OR 16 - 27 degrees Celsius: "Perfect, lovely weather... unless it rains."

81 - 95 degrees Fahrenheit OR 28 - 35 degrees Celsius: " Nice and warn. Go for a swim."

Greater than 95 degrees Fahrenheit or 35 degrees Celsius: " Really hot! Best to stay in air conditioning."

and your calculated AVERAGE weekly temperature

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!