Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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,

image text in transcribed
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 (0100%) and condition. For instance, "Vancouver", "Cloudy 20.0C, 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 deadline 5. Write down your information on top of this page and submit this word file along with your files

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_step_2

Step: 3

blur-text-image_step3

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

Objects And Databases International Symposium Sophia Antipolis France June 13 2000 Revised Papers Lncs 1944

Authors: Klaus R. Dittrich ,Giovanna Guerrini ,Isabella Merlo ,Marta Oliva ,M. Elena Rodriguez

2001st Edition

ISBN: 3540416641, 978-3540416647

More Books

Students also viewed these Databases questions

Question

=+7 How has the COVID-19 pandemic impacted the operations of IHRM?

Answered: 1 week ago