Computer Science, asked by arunaw, 12 hours ago

A program needs to be created for a vending machine that dispenses coffee and tea. It should
produce a single output signal (Y) to dispense the user desired beverage. Users can either insert
coins or a voucher to buy beverages from the machine. After inserting coins or the voucher, the
user should press on the appropriate button; “Coffee” or “Tea”. A, B, C and D are the logical
signals that indicate coffee button, tea button, coin and voucher inputs respectively.
The conditions for output will be as follows;
● Coffee or Tea will be dispensed (Y = 1) when someone inserts coins OR a voucher.
● Machine will not dispense any beverage, if the payment is not done.
● Users should press on the appropriate button (“Tea” or “Coffee”) after making the
payment, otherwise the machine will not dispense anything (Y = 0).
● If both buttons are pressed, the output of the machine is undefined.
● If the user inserts coins and a voucher to the machine at the same time and presses the
appropriate button, the machine will dispense the beverage. (Y=1).
a. Construct a truth table to represent the functionality for the above vending machine and
derive the corresponding equation.
b. Simplify the Boolean expression obtained in part (a), using Boolean algebra. Clearly
show all the workings and Boolean algebraic rules used for this simplification.
c. Construct the logic circuit for the simplified Boolean expression obtained in part (b)

Answers

Answered by skdruv760
0

Answer:

A program needs to be created for a vending machine that dispenses coffee and tea. It should

produce a single output signal (Y) to dispense the user desired beverage. Users can either insert

coins or a voucher to buy beverages from the machine. After inserting coins or the voucher, the

user should press on the appropriate button; “Coffee” or “Tea”. A, B, C and D are the logical

signals that indicate coffee button, tea button, coin and voucher inputs respectively.

The conditions for output will be as follows;

● Coffee or Tea will be dispensed (Y = 1) when someone inserts coins OR a voucher.

● Machine will not dispense any beverage, if the payment is not done.

● Users should press on the appropriate button (“Tea” or “Coffee”) after making the

payment, otherwise the machine will not dispense anything (Y = 0).

● If both buttons are pressed, the output of the machine is undefined.

● If the user inserts coins and a voucher to the machine at the same time and presses the

appropriate button, the machine will dispense the beverage. (Y=1).

a. Construct a truth table to represent the functionality for the above vending machine and

derive the corresponding equation.

b. Simplify the Boolean expression obtained in part (a), using Boolean algebra. Clearly

show all the workings and Boolean algebraic rules used for this simplification.

c. Construct the logic circuit for the simplified Boolean expression obtained in part (b)

Answered by sarwathunisa244
0

Answer:

here is your answer!

Explanation:

hope it helps you ♡´・ᴗ・`♡

mark as brainliest

Attachments:
Similar questions