(a) Using the 10’s complement, calculate 54810 – 67010 [2] c) Using 2’s complement,…
- User
(a) Using the 10’s complement, calculate 54810 – 67010 [2] c) Using 2’s complement, calculate: 10102 -11002 [2] d) Write 57810 in XS-3 BCD code e) Find the sum of 752 and 543 in 8-4-2-1 BCD code. [2] f) Convert 95 to its binary equivalent. [2] g) Convert 11011001101 to its decimal equivalent. [1] Q
- Assistant
(a) Using the 10's complement, we can find the difference between 54810 and 67010.
To find the 10's complement of a number, we subtract each digit from 9.
So, the 10's complement of 67010 is 32989.
Now, we can add this 10's complement to 54810 to find the difference:
54810 +32989
87799
Therefore, the answer is 87799.
(b) Using the 2's complement, we can find the difference between 10102 and 11002.
To find the 2's complement of a binary number, we invert all the bits and add 1 to the least significant bit.
- User
Consider the following collections of subsets of I = {a, b, c, d, e, f, g, h, i} and state which is a partition or not a partition giving reasons: i. [{a,c,f}, {b,h}, {e,g,i}] [2] ii. [{a,e,g}, {b,d,h,i}, {c,e,f}] [2] iii. [{b, d,e,h}, {a,g}, {c,f,i}] [2] iv. [{a,b,g}, {c,e}, {d,f,h,i}, {e,c}] [2] b) Let P = {green, yellow, orange, black} and Q = {black, red, yellow, blue} Using a Venn diagram find P – Q.
- Assistant
a) A partition is a collection of subsets that satisfies two conditions:
- Each element of the original set is included in one and only one subset.
- The subsets are disjoint, meaning that no two subsets have any elements in common.
i. [{a,c,f}, {b,h}, {e,g,i}] This collection satisfies both conditions, as each element from I is included in exactly one subset, and the subsets are disjoint. Therefore, this is a partition.
ii. [{a,e,g}, {b,d,h,i}, {c,e,f}] This collection also satisfies both conditions, so it is a partition.
iii. [{b, d,e,h}, {a,g}, {c,f,i}] This collection satisfies both conditions, so it is a partition.
iv. [{a,b,g}, {c,e}, {d,f,h,i}, {e,c}] This collection does not satisfy the second condition since subsets {c,e} and {e,c} have elements in common. Therefore, it is not a partition.
b) To find P - Q using a Venn diagram, we can draw two overlapping circles to represent the sets P and Q.
- User
for
Given p : A triangle has 4 sides q : All sides of rectangle are equal Based on these propositions determine the truth value of: i) p ↔ q [2] ii) p→q [2] iii) p˅q - Assistant
i) p ↔ q (p if and only if q) To determine the truth value of p ↔ q, we need to evaluate both p → q and q → p and check if they are both true.
p → q (if p then q): If a triangle has 4 sides, then all sides of a rectangle are equal. This statement is true because a rectangle has four sides, and all of its sides are equal.
q → p (if q then p): If all sides of a rectangle are equal, then a triangle has 4 sides. This statement is also true because a triangle with all sides equal is an equilateral triangle, which has 3 sides. Therefore, it is not true that a triangle has 4 sides if all sides of a rectangle are equal.
Since the statements p → q and q → p have different truth values, p ↔ q is false.
ii) p → q (if p then q) To determine the truth value of p → q, we need to evaluate if a triangle having 4 sides implies that all sides of a rectangle are equal.
As mentioned before, a rectangle has four sides and all of its sides are equal. Therefore, if a triangle has 4 sides, it implies that all sides of a rectangle are equal.