Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

JSON Response example when code = BAHRAIN as follows: {country:Bahrain, Temps! {day:SUNDAYen {dy4 MENLAY, temp4 3%), {day: TUESDAY,te: 29). {day: WEDNESDAY,to: 37), {day:THURSDAY,tempt 35). (day:

image text in transcribed

JSON Response example when code = BAHRAIN as follows: {"country":"Bahrain, "Temps"! {"day":"SUNDAY""en" {"dy"4 "MENLAY", "temp4 3%), {"day": "TUESDAY","te: 29). {"day": "WEDNESDAY","to": 37), {"day":"THURSDAY","tempt 35). ("day": "FRIDAY","temp" 34). {"day" "SATURDAY", ": 37) 1 C Implement findTempl) function as follows: This function will be called whenever the user change the Sample Bumple value of the pull-down menu. This function should contacte the Web Service API, sending the selected country code, to SEREN display the information country, daily temperatures in the week and average weekly temperature) inside the div tag Country whose id-result as shown in the example on the right 1. SUNDAY Tempis 37 In addition, the country name and the average temperatures 2. MONDAY Tompi 35 3. TUESDAY Tompis 9 should be saved as one JS object inside an array in a local 4. WEDNESDAY Tenip 37 storage. Whenever new request is made, the country/average S. THURSDAY Tempio will be saved and added to the array inside the local storage 6.FRIDAY Tompis 34 (duplicates is allowed) 7. SATURDAY Tempis 37 (Tip: define JS Object with Country/Average properties) and Average Tumpe M.285714285714285 then push it inside the amy) Use the editor to format your

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions