User-Interface Design (SQA National 5 Computing Science): Revision Note

Exam code: X816 75

Robert Hampton

Written by: Robert Hampton

Reviewed by: James Woodhouse

Updated on

User-interface design

What is a user interface?

  • The user interface is the part of a program that the user sees

  • It shows what inputs the user must enter and what outputs the program will display

  • A user interface can be a simple command line or a graphical, event-driven design

  • The purpose of UI design is to make the program clear and easy to use

Designing user interfaces

  • User interfaces are designed using a wireframe

  • A wireframe is a simple sketch showing the layout of input and output areas

  • Wireframes are normally drawn by hand rather than typed

  • Wireframes do not include code, only the structure of the screen

Inputs in a user interface

  • Inputs are areas where the user enters data

  • These must be clearly labelled so the programmer knows what the program expects

  • Examples of inputs include:

    • A text box for “hours worked”

    • A text box for “number of rooms”

    • A text box for “number of tickets”

  • Instructions or prompts should be included to guide the user

Outputs in a user interface

  • Outputs show the results the program will calculate

  • Outputs must match the requirements from the analysis stage

  • Examples of outputs include:

    • A label showing “your pay this week is”

    • A result area for “total cost”

    • A message recommending an option or decision

  • Outputs should be clearly labelled so the user understands them

Interactive elements

  • Some interfaces are event-driven, meaning the user clicks something to make the program run

  • These interactive elements must be shown in the wireframe

  • Examples include:

    • A “run” or “submit” button

    • A “next” or “continue” button

    • Buttons that trigger calculations

Evaluation of a user interface

  • A user interface is fit for purpose when it meets all the requirements from the analysis stage

  • This means:

    • All required inputs are present

    • All required outputs are present

    • The layout allows the user to complete the task clearly and easily

    • Any needed buttons or controls are included

  • If any input or output is missing, the UI is not fit for purpose

  • A good UI supports the user and makes the program easy to understand

Worked Example

A company, "QuickPrint," is developing a new application to calculate the estimated cost of custom-printed T-shirts.

Analysis requirements for the program:

  • Input 1: The number of T-shirts required (e.g., 50)

  • Input 2: The number of colours in the design (e.g., 3)

  • Output: The final Estimated Total Cost must be displayed

Using a design technique of your choice (such as a sketch or wireframe), design the user interface for the QuickPrint program.

The design must clearly show all necessary labels for input and the final calculated output

[3]

Answer

Orange form titled "QuickPrint" features a T-shirt icon and fields for "No. of T-shirts," "No. of colours," and "Estimated Total Cost."
  • Input of T-shirts: A label/prompt identifying the input [1 mark]

  • Input of Colours: A label/prompt identifying the second input [1 mark]

  • Output Display: A label clearly indicating the calculated result [1 mark]

Unlock more, it's free!

Join the 100,000+ Students that ❤️ Save My Exams

the (exam) results speak for themselves:

Robert Hampton

Author: Robert Hampton

Expertise: Computer Science Content Creator

Rob has over 16 years' experience teaching Computer Science and ICT at KS3 & GCSE levels. Rob has demonstrated strong leadership as Head of Department since 2012 and previously supported teacher development as a Specialist Leader of Education, empowering departments to excel in Computer Science. Beyond his tech expertise, Robert embraces the virtual world as an avid gamer, conquering digital battlefields when he's not coding.

James Woodhouse

Reviewer: James Woodhouse

Expertise: Computer Science & English Subject Lead

James graduated from the University of Sunderland with a degree in ICT and Computing education. He has over 14 years of experience both teaching and leading in Computer Science, specialising in teaching GCSE and A-level. James has held various leadership roles, including Head of Computer Science and coordinator positions for Key Stage 3 and Key Stage 4. James has a keen interest in networking security and technologies aimed at preventing security breaches.