UNIVERSITY OF CANBERRA
INTRODUCTION TO INFORMATION TECHNOLOGY (4478/8936)
TUTORIAL WEEK 12 - Semester 1 - 2024
IIT- Tutorial Lab Week 12 – GUI & Exception Handling
Introduction
In this week’s tutorial, we will start GUI and Exception Handling. This is important preparation
work for your Assignment number 4.
Part 1: Exception Handling
a) Each of the following statements, generates one of the Traceback error messages
(labelled (a) through (t) in Table 1. Determine the error message generated by each
statement.
Page 1|6
UNIVERSITY OF CANBERRA
INTRODUCTION TO INFORMATION TECHNOLOGY (4478/8936)
TUTORIAL WEEK 12 - Semester 1 - 2024
b) In the following exercises, determine the output displayed by the lines of code.
Page 2|6
UNIVERSITY OF CANBERRA
INTRODUCTION TO INFORMATION TECHNOLOGY (4478/8936)
TUTORIAL WEEK 12 - Semester 1 - 2024
Page 3|6
UNIVERSITY OF CANBERRA
INTRODUCTION TO INFORMATION TECHNOLOGY (4478/8936)
TUTORIAL WEEK 12 - Semester 1 - 2024
Part 2: Testing
For each of the following business rules (see page 5), add test data to the table to thoroughly
test the program. Give each test a unique description. No two tests should have the same
description and avoid numbers in your descriptions. Note that the number of rows in the
table below is no indication on how many tests you should have. You may need more, you
may need fewer. You must first work out the equivalence partitions, then type of data the
program works with (ordinal vs. non-ordinal), then the boundaries and special cases, before
you start filling in the table with the actual tests.
Page 4|6
UNIVERSITY OF CANBERRA
INTRODUCTION TO INFORMATION TECHNOLOGY (4478/8936)
TUTORIAL WEEK 12 - Semester 1 - 2024
a) Movie tickets cost $5 for a child (<10 years of age), $10 for a teenager (10yr ≤ age <
20yr) and $12 for an adult (≥ 20yr).
b) A company has a recruiting policy of only interviewing applicants between 25 and 40
inclusive. However, they will interview applicants up to the age of 45 if they have at
least 10 years’ experience.
Page 5|6
UNIVERSITY OF CANBERRA
INTRODUCTION TO INFORMATION TECHNOLOGY (4478/8936)
TUTORIAL WEEK 12 - Semester 1 - 2024
c) To be elected, a candidate must get over half of the votes cast. An election has 3
candidates, A, B, and C. If no candidate gets over half of the votes, the result is “-”. The
input here is the actual number of votes, not percentages.
Page 6|6