Question 2: Logic (10 marks) (a) For this question the following statements and symbols should be used: a: Adita plays e
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am
Question 2: Logic (10 marks) (a) For this question the following statements and symbols should be used: a: Adita plays e
Question 2: Logic (10 marks) (a) For this question the following statements and symbols should be used: a: Adita plays esports . d: David plays esports h: Huyen plays cricket [3 marks) ** Translate the following into English. IV (d Aa) i. d+ (avh) ii. -(dih) [3 marks] ** Translate the following into symbolic logic (do not simplify your answer). iii. If David plays esports, then Adita does not play esports. iv. Neither Adita nor David play esports. V. Adita plays esports if and only if Huyen plays cricket or David plays esports. (b) [4 marks) ** You have a colleague who has written the following condition statement in his program code: (pass <= 50 or score > 5) and (pass > 50 de score > 5) and pass = 50 Show using the laws of logic that this condition statement can be simpli led to score > 5 and pass c50 For each step, state which law of logic you have used. Question 3: Functions and Relations (10 marks) (4 marks] ** R is an relation in the set A = {0,2,4,6,8) given by the relation R = {(a,b): a #b2ab). Determine if R is an equivalence relation by showing whether it is reflexive, symmetry and transitive (b) [2 + 3 + 1 = 6 marks] ** For the domain X = {a,b) and co-domain Y = {c,d,e): how many functions f: x - y are possible? Provide an example of a function, using formal notation or a diagram. how many of the functions in part (1) are injective? Provide an example that is injective and an example that is not. how many of the functions in part (1) are bijective? Provide an example if one exists, if not explain why not. i ii. iii. COSID003 COMPUTER AND LOGIC ESSENTIALS ASSIGNMENT