Question: CS103 Fall 2018 Question 2 (I0 points): Basic Logie Operation, make sure you read Appendix 2 (Page will help you on this question. (5 points)
CS103 Fall 2018 Question 2 (I0 points): Basic Logie Operation, make sure you read Appendix 2 (Page will help you on this question. (5 points) Base on the Table logic operation, fill out the following table. Assuming that: x is 5, y is-1 Table 2a: Expression a) I and examples in Appendix 2, Boolean data type and some basic Result true true XSy True b) (5 points) We have 4 cities A, B, C, and D far away from each other. Each city has a temperature and a raining sensor - The temperature sensor returns temperature in Celsius degree (C) - The raining sensor retuns amount of rain in mini-meter (mm). Road Icing condition: Temperature is less than 0 AND raining is greater than O Logic expression: (t 0) Stay inside condition: Temperature is less than -15 OR raining is greater than 250 Logic expression for Stay inside: (t -15) lI(r> 250) Call for help condition: Temperature is less than -25 or raining is greater than 500, Question: What is the logic expression for "Call for help" condition? Fill out the following table (Table 2b), using above data and the information in Appendix 2. Table 2b. Call for help logie expression?) Stay inside City Temperature Raining Road lcing False False True 100 255 526
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
