Q.2.1 Briefly explain what an array is. As part of your answer make use of a labelled example to show the declaration and components of an array
Q.2.1 Briefly explain what an array is. As part of your answer make use of a
labelled example to show the declaration and components of an array
Q.2.2 Identify the purpose and the components of the method represented in the
pseudocode below:
num calcAverage(num total)
Declarations
num average
set average = total / 2
return average
Q.2.3 Explain what it means when a module is said to be functionally cohesive.
Q.2.4 Convert the following pseudocode into a class diagram.
class Weapon
Declarations
string make
string model
string serialNumber
string countryOfOrigin
void setMake (string manufacturer)
set make = manufacturer
return
string getMake()
return make
endClass
Q.2.5 Create the pseudocode that will demonstrate how an application will write
your name and surname to a text file called “students.dat”.
Q.2.7 Briefly discuss any four user-initiated actions that can be taken using a
graphical user interface (GUI).
Q.2.8 Briefly explain what system modelling is and how it can benefit the
design
Note: References taken directly from the textbook must be acknowledged
or paraphrased.
Q.2.9 Below are the elements of the data hierarchy. Rearrange them so that they
appear in order from the smallest element to the largest element.
Elements: file, field, character, record,
Trending now
This is a popular solution!
Step by step
Solved in 2 steps