Solution to There are two webcams, X and Y that can automatically switch On or Off at … - Sikademy
Author Image

Archangel Macsika

There are two webcams, X and Y that can automatically switch On or Off at any given time to record a live video streaming session. To ensure the smooth recording session, the live feed input system is programmed with certain criteria. The conditions set are; if webcam X and webcam Y are switch on, the input system can enable the recording input and the live session will start. If either webcam X or webcam Y is switched on, the input system cannot enable the recording and the live session will stop. In all other conditions, the input system will enable the recording and the live session streaming will commence. c. Translate the pseudocodes in part (a.) and (b.) into propositional logic statements.

The Answer to the Question
is below this banner.

Can't find a solution anywhere?

NEED A FAST ANSWER TO ANY QUESTION OR ASSIGNMENT?

Get the Answers Now!

You will get a detailed answer to your question or assignment in the shortest time possible.

Here's the Solution to this Question

bool x;

bool y;

bool stream=false;

function stream(x,y):

if(x & y):

{stream=true;}

else:

{stream=false;}


if x is true AND y is true then the stream is true

if x is false OR y is false then the stream is false

Related Answers

Was this answer helpful?

Join our Community to stay in the know

Get updates for similar and other helpful Answers

Question ID: mtid-5-stid-8-sqid-3514-qpid-2213