Question 1: In planet Z, there have been two new outbreaks of Disease X and Disease Y. You have been tasked with creating a system which will detect the presence of Diseases X and Y. A person may have no disease or any one of the diseases or both. The presence of the diseases will depend on the following symptoms: 1. Inputs (Symptoms) : A: Breathing Difficulties. (A=1 if you have breathing difficulties, A=0 otherwise) B: Normal Body Temperature (B=1 if you have a normal body temperature, B=0 otherwise) C: Fatigue (C=1 if you have fatigue, C=0 otherwise) D:Loss of smell (D= 1 if the person has lost his ability of smell, D=0 otherwise) Outputs: X: Disease X Y: Disease Y 1. You have Disease X if your fatigue is accompanied by i) breathing difficulties with normal body temperature or ii) no loss of smell. 2. If you don't have fatigue then you will have Disease X if you have i) an abnormal body temperature or ii) you have loss of smell with no breathing difficulties 3. If you don't have a normal body temperature or you have lost your sense of smell with no breathing difficulties then you have Disease Y. Devise a truth table for the system above which will detect the presence of the diseases based on the given symptoms. In your truth table, the input columns should be in the order ABCD, where A is the MSB and D is the LSB.
Question 1: In planet Z, there have been two new outbreaks of Disease X and Disease Y. You have been tasked with creating a system which will detect the presence of Diseases X and Y. A person may have no disease or any one of the diseases or both. The presence of the diseases will depend on the following symptoms: 1. Inputs (Symptoms) : A: Breathing Difficulties. (A=1 if you have breathing difficulties, A=0 otherwise) B: Normal Body Temperature (B=1 if you have a normal body temperature, B=0 otherwise) C: Fatigue (C=1 if you have fatigue, C=0 otherwise) D:Loss of smell (D= 1 if the person has lost his ability of smell, D=0 otherwise) Outputs: X: Disease X Y: Disease Y 1. You have Disease X if your fatigue is accompanied by i) breathing difficulties with normal body temperature or ii) no loss of smell. 2. If you don't have fatigue then you will have Disease X if you have i) an abnormal body temperature or ii) you have loss of smell with no breathing difficulties 3. If you don't have a normal body temperature or you have lost your sense of smell with no breathing difficulties then you have Disease Y. Devise a truth table for the system above which will detect the presence of the diseases based on the given symptoms. In your truth table, the input columns should be in the order ABCD, where A is the MSB and D is the LSB.
Programming Logic & Design Comprehensive
9th Edition
ISBN:9781337669405
Author:FARRELL
Publisher:FARRELL
Chapter5: Looping
Section: Chapter Questions
Problem 3GZ
Related questions
Question
Expert Solution
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by step
Solved in 2 steps with 7 images
Knowledge Booster
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.Recommended textbooks for you
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage