3 store + display

icon picker
A message example

A simple weather forecast program to read and run.

requirement

The forecast should store a few weather details and present them in clear sentences.

task

Run the program and look at the output.
Read the code, it should look familiar. Try to recognise the names, types and values for each variable.
Compare the code with the output. Check out how the variables are used to display the forecast message.
This example will help you in the next exercise, so study it carefully!

expected output

The temperature is 11
The wind speed is 17
The outlook is cloudy

the program code

Loading…
Want to print your doc?
This is not the way.
Try clicking the ⋯ next to your doc name or using a keyboard shortcut (
CtrlP
) instead.