Easier to read with cream paper, a tint, more contrast or larger text? Choose your colours and text, once, for every page.

Free lesson

ESP task 4a (3 of 5): Screens and messages people understand

The whole lesson, free. Read it and have a go at the activities. To work the tasks and labs in the real lesson, press Start lab, with no account needed.

40 minutes

A quick check that you are not a bot, then your own lab opens on the interactive lesson.

Already have an account? Sign in

"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

WordWhat it meansExample
User experienceHow easy and pleasant a tool is to use.clear messages, simple menus
PromptA message that tells the user what to type.Type the hour, from 9 to 20
Error messageA message that says something went wrong, and how to fix it.There is no court 3. Choose 1 or 2.
ConsistentThe same words and the same look every time.always "Cancel", never "Remove"
MenuA numbered list of choices.1. Book a court
DefaultThe 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

PartWhat it saysExample
What happenedThe problem, in plain wordsThe hour 21 is not allowed.
WhyThe rule behind itThe club closes at 9 in the evening.
What to doThe next stepPlease choose an hour from 9 to 20.

The cells students fill in are left blank in this preview.

Try it: say a result well

Code: python
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 questions
Have a go: your answers are marked here and then forgotten. Sign in if you would like your score kept, and to pick up where you left off.Sign in to keep your score

Stage 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.

Code: python
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

InconsistentConsistent
Book, Reserve and Make bookingBook everywhere
Prices as 8, 8.0 and 8 pounds8.00 pounds everywhere
Some errors in red, some plainEvery error starts with "Sorry" and says what to do
Hours typed as 10, ten and 10:00Always 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

Final check

5 questions
Have a go: your answers are marked here and then forgotten. Sign in if you would like your score kept, and to pick up where you left off.Sign in to keep your score

Teach this lesson with your class

On a college account your students work the tasks and the labs as well, and every mark is kept for you.