Question: matlab Please pick the right logical expression to be used in the following code. The objective of the code is to print out a message
Please pick the right logical expression to be used in the following code. The objective of the code is to print out a message reminding a patient to take one of the medications he/she has missed. We'd like to see a message when the patient has taken only one of his/her two medications but not both AND the current time is between 22:00 and 23:00, tine = 2230; medA = 1; % 1st med: 1 means medication was taken, 2 means not taken yet medB = 0; 2nd med. I means medication was taken, 2 means not taken yet if (YOUR ANSWER fprintf("You forgot one of your medications in"); end Please pick the right logical expression to be used in the following code. O xor(medA, medB) && time > 2200 && time 2200 && time 2200 && time 2200 && time
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
