Answer to Question #146545 in Discrete Mathematics for Bob

Question #146545
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.
a. Based on the scenario above, generate a simple pseudocode with a function that has x and
y as inputs and livestream and nolivestream as outputs.
1
Expert's answer
2020-11-25T12:17:43-0500

bool x;

bool y;

bool stream=false;

function stream(x,y):

if(x & y):

{stream=true;}

else:

{stream=false;}


Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS