Question: intro computer science hw (Chapter #6 Question) You must use a LOOP in this Question (You DO NOT need an ARRAY as arrays haven not

 intro computer science hw (Chapter #6 Question) You must use a

intro computer science hw

(Chapter #6 Question) You must use a LOOP in this Question (You DO NOT need an ARRAY as arrays haven not been covered yet!!!) 6, 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 (NOT AN ARRAY), and use a loop to obtain all 7 temperatures from the user. Additionally use a variable to hold the lowest and the highest temperature for the week (the logic for this is to initialize each of these 2 variables (low and high) with the first temperature entered by the user do not set them to 0 as temperatures can also be negative numbers). Your code will display the AVERAGE temperature, the HIGHEST temperature, and the LOWEST temperature for the week in the web page (with 2 decimal places SEE PREVIOUS ASSIGNMENTS FOR HOW TO DISPLAY 2 DECIMAL PLACES USING THE toFixed(2) FUNCTION). Also display the appropriate message that describes the weather for that week using the scale in step 5 above and your calculated AVERAGE weekly temperature. CHANGE THE MESSAGES IN STEP 5, associated with the scale, TO YOUR OWN ORIGINAL MESSAGES. Save this file as weeklyForcast.html in the folder created in step #4 above (YourName_MFC132 Assign3). Test it in a browser to make sure it works

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!