Answered step by step
Verified Expert Solution
Question
1 Approved Answer
**Urgent please solve this in Visual studio code with a .HTML file and one .js file and please explain steps also.** In this test, you
**Urgent please solve this in Visual studio code with a .HTML file and one .js file and please explain steps also.**
In this test, you are requested to perform the following: We need to be able to store and retrieve information about weather. To perform this, we need to be able to add the following information: City Name, Temperature, Humidity (0-100\%) and condition. For instance, "Vancouver", "Cloudy 20.0 C, Humidity 52\%". You will need to store these information in an array on the server side. Your application, needs to have the following functionality: - Adding City: Enter new city to the array. For instance: addCity( "Vancouver", "Cloudy 20.0 C, Humidity 52\%") - getWeather: Enquire about weather for a specific city, for instance: getWeather("Toronto") - displayAllWeather: Display the weather for all cities in the database: displayAllWeather() So, in the server side, for each city in the array, you are requested to store the above-mentioned information. Use JSON to keep the date in the attay and use 'express 'library in JavaScript. For the view, you will need to create an html page to accomplish the above mentioned tasks. You can use either "Post" or "Get" method to transmit the data to the web-server. To submit: Follow these steps to submit your work successfully: 1. Create a folder and name it as firstName_lastName_Test_One 2. Copy all files that you developed in this folder 3. Write down your information on top of this document and place it in the folder 4. Zip this folder and submit it through Moodle before the deadlineStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started