Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Update the weather.py file to do the following: Using separate prompts, prompt the user to enter the latitude of the weather station and the longitude

Update the weather.py file to do the following:

  • Using separate prompts, prompt the user to enter the latitude of the weather station and the longitude of the weather station
  • Use the latitude and longitude to retrieve the following information:
    • Station Name
    • Current Conditions eg. Sunny, Partly Cloudy etc.
    • Temperature in Fahrenheit
    • Elevation
  • Display the output as follows:

The following are some urls with the latitude and longitude of weather stations to test your program:

https://forecast.weather.gov/MapClick.php?lat=32.73016&lon=-117.19518
https://forecast.weather.gov/MapClick.php?lat=46.999&lon=-102.8833
https://forecast.weather.gov/MapClick.php?lat=31.7798&lon=-106.3763
https://forecast.weather.gov/MapClick.php?lat=44.0608&lon=-92.4831
https://forecast.weather.gov/MapClick.php?lat=30.4391&lon=-81.703
https://forecast.weather.gov/MapClick.php?lat=32.1259&lon=-81.297

Step by Step Solution

3.48 Rating (168 Votes )

There are 3 Steps involved in it

Step: 1

Answer PYTHON CODE import bs4 requests try url httpsforecastweathergovMapClickphp latlong lat3273016... 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: 3

blur-text-image

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

Introduction To Business Statistics

Authors: Ronald M. Weiers

7th Edition

978-0538452175, 538452196, 053845217X, 2900538452198, 978-1111524081

More Books

Students also viewed these Databases questions

Question

Deficiency Count Procedure/Control to address deficien

Answered: 1 week ago

Question

Why should a business be socially responsible?

Answered: 1 week ago

Question

Discuss the general principles of management given by Henri Fayol

Answered: 1 week ago

Question

Detailed note on the contributions of F.W.Taylor

Answered: 1 week ago