Question: Description: - Write a function called countLogs that takes in 4 logicals as inputs and has 2 outputs that represent the quantity of trues and

 Description: - Write a function called countLogs that takes in 4

Description: - Write a function called countLogs that takes in 4 logicals as inputs and has 2 outputs that represent the quantity of trues and quantity of falses respectively. Hint: double(true) 1 Examples: [ numT1 numF1] = countlogs(true, true, true, false) > numT 1=3 >numF1=1 [numT2 numF2] = countlogs (false, false, true, false) numT1 =1 > numF1 =3 [numT3 numF3 ]= countlogs (false, false, false, false) numT1 =0 >> numF1 =4

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!