Consider the construction of a vending machine's logic. Assume that every soda costs a quarter, and that the machine accepts only quarters. E = True indicates the machine is empty, it has no more sodas S = True indicates the user has made a selection P = True indicates the user has paid a quarter The machine may send two control commands to its machinery: V = True indicates machine will give the user a soda (i.e. "vend") R = True indicates machine will return the user's quarter The machine should return a user's quarter only when they have paid and the machine is empty. The machine should give a soda only when a user has paid, made a selection and the machine is not empty. i) Write a truth table for V and R in terms of E, S, P ii) Write an expression for V in terms of E, S, P using boolean operators iii) Write an expression for R in terms of E, S, P using boolean operators
Consider the construction of a vending machine's logic. Assume that every soda costs a quarter, and that the machine accepts only quarters. E = True indicates the machine is empty, it has no more sodas S = True indicates the user has made a selection P = True indicates the user has paid a quarter The machine may send two control commands to its machinery: V = True indicates machine will give the user a soda (i.e. "vend") R = True indicates machine will return the user's quarter The machine should return a user's quarter only when they have paid and the machine is empty. The machine should give a soda only when a user has paid, made a selection and the machine is not empty. i) Write a truth table for V and R in terms of E, S, P ii) Write an expression for V in terms of E, S, P using boolean operators iii) Write an expression for R in terms of E, S, P using boolean operators
Chapter4: Symbols
Section: Chapter Questions
Problem 3SQ: What do the following abbreviations stand for? a. SPST b. SPDT c. DPST d. DPDT e. NO f. NC
Related questions
Question
Consider the construction of a vending machine's logic. Assume that every soda costs a quarter, and that the machine accepts only quarters.
- E = True indicates the machine is empty, it has no more sodas
- S = True indicates the user has made a selection
- P = True indicates the user has paid a quarter
The machine may send two control commands to its machinery:
- V = True indicates machine will give the user a soda (i.e. "vend")
- R = True indicates machine will return the user's quarter
The machine should return a user's quarter only when they have paid and the machine is empty. The machine should give a soda only when a user has paid, made a selection and the machine is not empty.
i) Write a truth table for V and R in terms of E, S, P
ii) Write an expression for V in terms of E, S, P using boolean operators
iii) Write an expression for R in terms of E, S, P using boolean operators
Expert Solution
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
This is a popular solution!
Trending now
This is a popular solution!
Step by step
Solved in 4 steps
Knowledge Booster
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, electrical-engineering and related others by exploring similar questions and additional content below.Recommended textbooks for you
Electricity for Refrigeration, Heating, and Air C…
Mechanical Engineering
ISBN:
9781337399128
Author:
Russell E. Smith
Publisher:
Cengage Learning
Electricity for Refrigeration, Heating, and Air C…
Mechanical Engineering
ISBN:
9781337399128
Author:
Russell E. Smith
Publisher:
Cengage Learning