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
B message exercise
Can you help prepare a simple advert for the hotel?
requirement
The advert should store a few details about the hotel and present them in clear sentences.
task
This is an example for you will complete a program that has already been started.
Investigate what the code does at the moment. Run the code and read it, look at the output.
Look at the program plan and think about what should be added to make the code complete.
Add the missing code and re-run the program to check that the output now matches the expected output.
You can use the previous example to help you in this exercise.
expected output
The name of the hotel is The Grand
The number of rooms is 75
The star rating is 5
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.