light switching system. system controls two lights in the room: a while LED (L) and an Ambient light (A). Assume that there are four variables: Input (4 variables) B = 1 indicates you are relaxing in your bed, 0 if not C= 1 indicates that you are sitting on your desktop computer, O if not E = 1 indicates that there is electricity, O if not D= 1 indicates that it is day, O if night [Note: You need to maintain the input order as BCED with B as the MSB and D as the LSB] Output (2 variables) L=1 indicates that the LED is ON A = 1 indicates that the Ambient Light is ON. You have to consider the following conditions: • The operation of the Ambient light requires electricity but the LED light works both in the presence and absence of electricity. • The Ambient light will ONLY work at night and the LED light will work during both day and night. · Both the lights cannot be ON at the same time. A always takes priority over L. • Lis turned ON when you are using your computer. . Ais turned ON when you are relaxing on your bed. . It's not possible to sit on your desktop computer and relax on your bed at the same time since they are located on opposite sides of your room. When you are neither on your bed nor computer, in this case a light will be ON only when it is night. Hint: You need to consider the previous conditions to determine which light will be ON.

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question
3. You are to create an automatic light switching system. The system controls two lights in
the room: a while LED (L) and an Ambient light (A).
Assume that there are four variables:
Input (4 variables)
B = 1 indicates you are relaxing in your bed, 0 if not
C = 1 indicates that you are sitting on your desktop computer, 0 if not
E = 1 indicates that there is electricity, 0 if not
D= 1 indicates that it is day, O if night
[Note: You need to maintain the input order as BCED with B as the MSB and D as the
LSB]
Output (2 variables)
L= 1 indicates that the LED is ON
A = 1 indicates that the Ambient Light is ON.
You have to consider the following conditions:
• The operation of the Ambient light requires electricity but the LED light works
both in the presence and absence of electricity.
• The Ambient light will ONLY work at night and the LED light will work during both
day and night.
· Both the lights cannot be ON at the same time. A always takes priority over L.
• Lis turned ON when you are using your computer.
· Ais turned ON when you are relaxing on your bed.
. It's not possible to sit on your desktop computer and relax on your bed at the
same time since they are located on opposite sides of your room.
• When you are neither on your bed nor computer, in this case a light will be ON
only when it is night. Hint: You need to consider the previous conditions to
determine which light will be ON.
Transcribed Image Text:3. You are to create an automatic light switching system. The system controls two lights in the room: a while LED (L) and an Ambient light (A). Assume that there are four variables: Input (4 variables) B = 1 indicates you are relaxing in your bed, 0 if not C = 1 indicates that you are sitting on your desktop computer, 0 if not E = 1 indicates that there is electricity, 0 if not D= 1 indicates that it is day, O if night [Note: You need to maintain the input order as BCED with B as the MSB and D as the LSB] Output (2 variables) L= 1 indicates that the LED is ON A = 1 indicates that the Ambient Light is ON. You have to consider the following conditions: • The operation of the Ambient light requires electricity but the LED light works both in the presence and absence of electricity. • The Ambient light will ONLY work at night and the LED light will work during both day and night. · Both the lights cannot be ON at the same time. A always takes priority over L. • Lis turned ON when you are using your computer. · Ais turned ON when you are relaxing on your bed. . It's not possible to sit on your desktop computer and relax on your bed at the same time since they are located on opposite sides of your room. • When you are neither on your bed nor computer, in this case a light will be ON only when it is night. Hint: You need to consider the previous conditions to determine which light will be ON.
Expert Solution
steps

Step by step

Solved in 2 steps with 6 images

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY