JavaScript required
We’re sorry, but Coda doesn’t work properly without JavaScript enabled.
Skip to content
Gallery
duke 1
read me first
1 display values
2 store values
3 store + display
Congratulations!
More
Share
Explore
3 store + display
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…
requirement
task
expected output
the program code
Want to print your doc?
This is not the way.
Try clicking the ⋯ next to your doc name or using a keyboard shortcut (
Ctrl
P
) instead.