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.
1
Expert's answer
2020-11-27T11:18:07-0500
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
Comments
Leave a comment