Tuesday, 1 November 2016

exam corrections

irrational numbers: pi

even parity system: the sender counts the number of 1's in the bit pattern, if there is an even number of 1's then a 0 is added. if there is an odd number of 1's a 1 is added.  the receiver then checks if there is an even amount.

absolute error = 6.9-.6.875 = 0.025
relative error = 0.025 / 6.9 = 0.00623

integer: only have whole numbers

telephone number: string, has a leading 0

relational operator: if num < num2 then

concatenation: &

assignment statement: num = console.readline()

No comments:

Post a Comment