You are on page 1of 15

5N18396 Assignment 1 – 30% Mathematics for IT

Part 1: Hex Codes [8 Marks]


The table shows the lower-case alphabet and their equivalent in binary notation.

Letter Binary Letter Binary


a 01100001 n 01101110
b 01100010 o 01101111
c 01100011 p 01110000
d 01100100 q 01110001
e 01100101 r 01110010
f 01100110 s 01110011
g 01100111 t 01110100
h 01101000 u 01110101
i 01101001 v 01110110
j 01101010 w 01110111
k 01101011 x 01111000
l 01101100 y 01111001
m 01101101 z 01111010

Complete the table:

To convert to Hexadecimal Notation:

1. (0110) and (0100) (21+22+23) and (22) 6 and 4 64


2.

First 3 letters of your


D A N
name:
Equivalent in Binary 01100100
01100001 01101110

Equivalent in
Hexadecimal 64
Notation

Create a “Hex Code” by writing the


numbers above side by side from
left to right after the #

Use an appropriate app to find the


corresponding colour to your hex Colour

1
5N18396 Assignment 1 – 30% Mathematics for IT

code.
Describe your colour e.g. dark
orange.
If you can, fill the cell to the right
with that colour.

2
5N18396 Assignment 1 – 30% Mathematics for IT

Part 2: Area [19 Marks]

Hex codes are used in graphics and website designs. The diagram shows a screen for a video game
based on reaction speed.

The yellow dot flashes and appears randomly in positions on the screen. The green circle and the pink
triangle are scoring regions. If you hit your joypad button when the yellow dot is in a scoring region you
gain points. If you hit it when outside of a scoring region, you lose points.

The dimensions of the screen are given in binary below. Convert these to their corresponding values in
decimal giving the dimensions in centimetres.

Binary2 Decimal10
20 +21 +23 +24 =
Screen Width 11011
27
Screen Length 10100 20
Circle Diameter 111 11
Triangle Base 1011 19
Triangle Height 1000 16

Calculate the following, for full marks show all your work and any formula you choose to use.

(Give your answers correct to the nearest whole number)

1. The area of the screen

A= SCREEN WIDTH*SCREEN LENGTH=27*20=540.

2. The area of the circle

A=Pi*(Circle Diameter/2)2=3.14*5.52=95.

3. The area of the triangle

A=Triangle Height*1/2*Triangle Base=16*19*1/2=152.

3
5N18396 Assignment 1 – 30% Mathematics for IT

In which region is the player more likely to score? Green Circle Pink Triangle

Why is that?

Because triangle has bigger area that increases the probability of light to be placed inside it.

4
5N18396 Assignment 1 – 30% Mathematics for IT

Part 3: Probability [15 Marks]

For the game described in Part 2, giving your answers correct to 2 decimal places, calculate the
probability that:

1. The yellow dot will flash within the circle?

2. The yellow dot will flash within the triangle?


3. The yellow dot will not flash within the circle or the triangle?
4. Does the position of a flash influence the probability of where the next flash will appear?
Explain using the terminology of probability.

5
5N18396 Assignment 1 – 30% Mathematics for IT

Part 4: Algebra [14 Marks]

Jonny played the reaction time game. He scored 3 times in the green circle and 2 times in the pink
triangle. His score was 40.

Mariam played the game also. She scored once in the green circle and 3 times in the pink triangle. Her
score was 25.

Write mathematical equations to describe the information above.

1. Jonny:

2. Mariam:

Solve the equations above simultaneously to find the value of a score in each zone.

The green circle =

The pink triangle =

Verify your answers.

6
5N18396 Assignment 1 – 30% Mathematics for IT

Part 5: Boolean Logic [8 Marks]

A player will score if they:

Click at the right time AND the yellow dot is in a scoring zone.

1. Assign Boolean Variables to these 2 conditions


2. Write a Logic Equation to determine when a player scores
3. Construct a Truth Table for the Logic Equation

C AND Y

T T T

T F F

F T F

F F F

7
5N18396 Assignment 1 – 30% Mathematics for IT

Part 6: Statistics [15 Marks]

Hi Score
1 Jonny 920
2 Jonny 883
3 Mariam 759
4 Sam 659
5 Laura 525
6 Mike XXX
7 Ahmed 301
8 Kalina 260

Mike’s Score is missing.

You can find it by adding the binary numbers below and then converting to decimal 😊

1111101 + 1000001 = 0101110110

Mike’s Score = 170 + 204

= 374

1. Describe the data in the Hi Score table above using 2 of the terms listed in this table:

Numerical Categorical Nominal


Discrete Ordinal Continuous

Explain what is meant by each term.

2. Calculate the mean of all the high scores (including Mike).

3. Calculate the median of the high scores.

4. What is the range of the high scores?

8
5N18396 Assignment 1 – 30% Mathematics for IT

5. What do your calculations tell you about the distribution of the high scores? You can use graphs
or pictures to illustrate.

9
5N18396 Assignment 1 – 30% Mathematics for IT

Part 7: Set Theory [16 Marks]

Players need to create an account to play the game described above. They need to choose a username
and a password is generated for them.

The hexadecimal number system is often used in cryptography. Look at the hexadecimal digits listed
below:

0, 1, 2, 3, 4, 5, 6, 7, 8, 9, A, B, C, D, E, F

How many different 4-digit passwords can be made from these digits …

1. If no digit is repeated?
(16*15*14*13)/4! = 1820

2. If digits can be repeated?


164=65536

Complete the table below matching the hexadecimal digits to their decimal equivalent:

HEX 0 1 2 3 4 5 6 7 8 9 A B C D E F
DECIMAL 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15

1. Let A be the set of positive multiples of 3 up to 15 (decimal).


List set A.
A = { 1,3,5,15}

2. Let B be the set of positive odd numbers up to 15 (decimal).


List set B.
B = {1,3,5,7,9,11,13,15 }

3. Let C be the set of positive prime numbers up to 15 (decimal).


List Set C
C = { 2,3,5,7,11,13}

4. Draw a Venn Diagram to show the decimal numbers from the table and illustrating the sets A, B,
C.

10
5N18396 Assignment 1 – 30% Mathematics for IT

1,15

3,5

11
5N18396 Assignment 1 – 30% Mathematics for IT

Part 8: Logic [9 Marks]


Use your Venn diagram from Part 7 to write these descriptions of number sets (i) as Boolean
expressions, (ii) in Set Notation and (iii) list the elements of that set.

Description Boolean Expressions Set Notation Elements


Number that is a
multiple of 3 and is a A AND C A ∩C {3}
Prime Number
Number that is not a
multiple of 3 and a
Prime Number
Number that is odd or
a Prime Number

Number that is not


odd or a prime
number

12
5N18396 Assignment 1 – 30% Mathematics for IT

Part 9: Indices [16 Marks]

There are 1000000 bytes in a Megabyte.

1. Write this number as an index with base 10.

2. Multiply your result by 103. Show your work.

3. What rule of indices did you use to answer question 2?

4. How many bytes are in a Terabyte? Write this as an index with base 10.

5. Divide your answer by 1 billion (as a power of 10). Show your work.

6. What rule of indices did you use to answer question 5?

7. In terms of bytes, what is the name given to your answer from question 5?

8. Simplify:

3
( 106 )

9. In terms of bytes, what would you call the answer from question 8?

10. Simplify:

4
( 102 × 103 )
14
10

11. In terms of bytes, what would you call the answer from question 10?

13
5N18396 Assignment 1 – 30% Mathematics for IT

12. Complete the table to put the quantities of memory in order of size beginning with the smallest.

Unit of Symbol Number


Memory of Bytes
Byte B 100

Kilobyte KB 103

Yottabyte

14
5N18396 Assignment 1 – 30% Mathematics for IT

Assessment Criteria [120 Marks]

Category of Marks Marks Marks As per


Available Awarded marking
sheet (÷ 2)
A Effective application of mathematics to
24
real life situations
B Use of appropriate mathematics to verify
24
and interpret results
C Accurate calculations and correct use of
24
formulae
D Coherent format with appropriate use of
mathematical symbols, letters and 24
terminology
E Logical progression of thought 24
Total Marks 120

Percentage Mark for Module (÷ 2)

15

You might also like