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.
Here's the Solution to this Question
if(x & y):