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.
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;}