Tut 4 Matrices
Tut 4 Matrices
Question 1
a) Shape A is represented by the matrix
0 2 5 4 3 2
-4 -2 -4 3 2 4
b) Calculate B = -1 -1 -1 -1 -1 -1
+ 2*A
-3 -3 -3 -3 -3 -3 [2]
c) Calculate C =
1 2 * -1 0
0 1 0 -1 *A [3]
d) By using a Scale of 1 cm = 1 unit on each axis, plot and draw the shapes A, B and C on the same
graph paper. [5]
Question 2
a) On Graph Paper using a scale of 2 cm = 1 unit on both axes for -5 ≤ x ≤ 5 and 5 ≤ y ≤ 5
8 8 8 0 -1
T1 = and T2 =
1 1 1
1 0
d) Plot, draw and Label shapes D on the Same Graph paper as shape A. [4]
Employees have to pay a pension tax (P) based upon their earnings (E). Tax is paid on the first P500 of
earnings, but no extra tax is paid on earnings over P500. Write down a Pseudo Code model to express
Taxable earnings (T) in terms of E. [3]
a) The rate of tax depends upon the Category (C ) to which the employees belongs. Employees in
Category 1 pay a Fixed Tax of P15, those in Category 2 pay 5% of T, those in Category 3 pay a
Fixed Tax of P8 plus 3% of T.
i) Write a Pseudo code model to express P in term of T for all categories of employees.
[7]
ii) Calculate P for employees in all THREE categories with earnings of P300, P490, P510 and P600
respectively. [6]
iii) Expalin why each of these sets of TEST DATA has been chosen. [4]
a) Convert :
i) 6304 hexadecimal to Denary
ii) 6304 hexadecimal to octal
iii) 6304 Octal to hexadecimal (working must be shown). [3]