1
Final Examination
QUESTION 1
(a) Clearly distinguish syntactical quality, semantic quality and pragmatic quality
of a process model.
(9 marks)
(b) What is the difference between a modeling notation and a modeling convention?
(4 marks)
(c) Provide three
# # STEP 0 - REQUIREMENTS SPEC
#
# # Define a function with one parameter, a string representing
# # a message. The function is to return that message in capital
# # letters, with every full-stop replaced with "STOP", and
# # all spaces removed.
#
# # Hi
# Playing Cards - Poker
#
# THE PROBLEM
#
# Assume the following value has already been entered into the
# Python interpreter, representing a hand of playing cards -
# where picture cards have the following values:
# Ace = 1; Jack = 11; Queen = 12; King
# Playing Cards
#
# THE PROBLEM
#
# Assume the following value has already been entered into the
# Python interpreter, representing a hand of playing cards -
# where picture cards have the following values:
# Ace = 1; Jack = 11; Queen = 12; King = 13
ca
# # STEP 0 - REQUIREMENTS SPEC
#
# # Define a function called 'pentagon' which uses turtle to draw a regular
# # pentagon (a closed figure with five sides of equal length, and five
# # equal angles). The function should have three integer parameters
#
# # STEP 0 - REQUIREMENTS SPEC
#
# # Define a function with one parameter, a non-empty list,
# # which returns the median item in that list.
#
# # NB: For the purpose of this exercise, the median item is
# # the middle value (or the second of two middle v
# # STEP 0 - REQUIREMENTS SPEC
#
# # Define a procedure with one parameter, a string.
# # The function should print various portions of a given (non-empty) string
# # as detailed below.
#
# # The required portions of the string to be printed, on 1 line ea
# Interest calculator
#
# THE PROBLEM
#
# Assume the following value has already been entered into the
# Python interpreter, representing a list of bank account balances in dollars
balances = [1000, 885.50, 999, 2030]
# PART 1
#
# Write an expression, or
# # STEP 0 - REQUIREMENTS SPEC
#
# # Define a function to calculate the number of players in a
# # football contingent involving three types of football teams.
# #
# # The function should have three parameters, representing
# # the number of League, AFL