"ERR 7"
A ticket machine shows: "ERR 7". You do not know what is wrong. You press buttons. You miss your train.
Another machine shows: "Please put in 2 pounds 50." You know what to do.
Both machines work. Only one is easy to use. The brief says the desk staff are not technical, so your tool must be like the second machine.
Key words
| Word | What it means | Example |
|---|---|---|
| User experience | How easy and pleasant a tool is to use. | clear messages, simple menus |
| Prompt | A message that tells the user what to type. | Type the hour, from 9 to 20 |
| Error message | A message that says something went wrong, and how to fix it. | There is no court 3. Choose 1 or 2. |
| Consistent | The same words and the same look every time. | always "Cancel", never "Remove" |
| Menu | A numbered list of choices. | 1. Book a court |
| Default | The value used when the user types nothing. | member: yes |
The cells students fill in are left blank in this preview.
Make the message better
Have a go
Loading…
Your answers are marked here and are not kept. A college account keeps every student’s marks.
A good error message has three parts
| Part | What it says | Example |
|---|---|---|
| What happened | The problem, in plain words | The hour 21 is not allowed. |
| Why | The rule behind it | The club closes at 9 in the evening. |
| What to do | The next step | Please choose an hour from 9 to 20. |
The cells students fill in are left blank in this preview.
Try it: say a result well
price = 8
hours = 2
print(price)
print("The price for", hours, "hours is", "{:.2f}".format(price), "pounds.")
answer = " YES "
print(answer.strip().lower() == "yes")
# {:.2f} shows 2 numbers after the point (8 becomes 8.00).
# strip() removes spaces. lower() makes small letters.
# Change the price to 4.5 and run it again.
Make a free account to save your work and track your progress.
Check: clear messages
Have a go
Check: clear messages
4 questionsStage 4a: write the messages
Make the booking tool easy to use. normalise_choice cleans a typed answer. format_price shows a price with 2 decimal places and the word pounds. menu_text makes a numbered menu. booking_message gives a clear message for "ok", "closed", "taken" or "bad_court". Read the comments in the starter for what each message must say. Press Run Tests to check your work.
def normalise_choice(text):
# Make a typed answer easy to compare: no spaces at the start or end, all lower case.
# " Yes " becomes "yes".
return None
def format_price(pounds):
# Give the price with 2 decimal places and the word pounds.
# 8 becomes "8.00 pounds". 4.5 becomes "4.50 pounds".
return None
def menu_text(options):
# options is a list of words. Give back one line for each, numbered from 1,
# joined with a new line: "1. Book a court" then "2. Cancel a booking".
return None
def booking_message(result, court, hour):
# result is "ok", "closed", "taken" or "bad_court". Give back a message a person understands.
# ok: say the court and the hour were booked.
# closed: say the club is closed at that hour, and say it is open from 9 to 20.
# taken: say that court is already booked at that hour, and say to try another.
# bad_court: say there is no such court, and say the courts are 1 and 2.
# Anything else: say that something went wrong.
return None
Make a free account to save your work, or press Start lab to work through the whole lesson.
Say the same thing the same way
A user learns your tool by using it. Help them.
Use the same word for the same thing. If one screen says "Book" and another says "Reserve", the user wonders if they are different.
Put buttons in the same place. Write prices the same way each time: 8.00 pounds.
Inconsistent and consistent
| Inconsistent | Consistent |
|---|---|
| Book, Reserve and Make booking | Book everywhere |
| Prices as 8, 8.0 and 8 pounds | 8.00 pounds everywhere |
| Some errors in red, some plain | Every error starts with "Sorry" and says what to do |
| Hours typed as 10, ten and 10:00 | Always a number from 9 to 20 |
The cells students fill in are left blank in this preview.
A chart shows a pattern faster
Note
A chart can show a pattern faster than a table of numbers. The data and charts lesson shows how to choose a chart and label it. A tool that shows its results clearly is easier to use.
Stage 4a: test your screen on a user
This is stage 4a of the Hillside practice project. Write the words for the booking screen: the menu, a prompt for each question, one success message and three error messages. Ask a classmate to use the screen with only your words. Watch them. Write down where they got stuck. Change at least two messages and say why.
A teacher marks this in a college. Nothing you write here is kept: it goes when you leave the page.
Make a free account to save your work, or press Start lab to work through the whole lesson.
Key words crossword
Have a go
Loading…
Your answers are marked here and are not kept. A college account keeps every student’s marks.
Final check
Have a go