Building A Weather Report (Teacher's Choice)
Now you can query Weatherstreet for current temperature and weather conditions.
- Use the methods you used in the shopping list app to build a block that lets you type in a list of multiple cities and states.
- Then use your current temperature and weather conditions blocks to build a weather report for multiple cities.
- If there were only one city in the list, what could you do to produce the report?
- Use list operations to produce the weather report, then test it on other cities.
The weather report should take a list of cities like this...
As part of this work you can choose to create "cleaner" entry of city names. To do this, you'll need to convert names like New York, NY to New+York,NY. Snap! blocks that convert words to lists, and lists to words, can make this possible.
... and produce a report like this:
-
Build a visual weather report: take the list information and produce sentences, then
say
those sentences in the app.
- Modify the weather report so that it will also include the forecasted temperature and conditions for tomorrow.