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
# # 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 repl
# 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 fo
# 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
# # 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)
# # 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
# # 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 requ
# 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, 8
# # 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