Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
question = 'Are you the fifth child?';
assert(isempty(I_plead_the_fifth(question)))
answer =
'yes'
answer =
[]
|
2 | Pass |
question = 'Were you at home on the night of 24 Oct 1974?';
assert(strcmpi(I_plead_the_fifth(question),'yes') || ...
strcmpi(I_plead_the_fifth(question),'no'))
answer =
'yes'
|
3 | Pass |
question = 'Did you go to work on 15 Oct 1955?';
assert(isempty(I_plead_the_fifth(question)))
answer =
'yes'
answer =
[]
|
4 | Pass |
question = 'Did you go to the bowling alley last week?';
assert(strcmpi(I_plead_the_fifth(question),'yes') || ...
strcmpi(I_plead_the_fifth(question),'no'))
answer =
'yes'
|
5 | Pass |
question = 'Do you like bread?';
assert(strcmpi(I_plead_the_fifth(question),'yes') || ...
strcmpi(I_plead_the_fifth(question),'no'))
answer =
'yes'
|
6 | Pass |
question = 'Are there five fingers on your right hand?';
assert(isempty(I_plead_the_fifth(question)))
answer =
'yes'
answer =
[]
|
7 | Pass |
question = 'Do you like pumpkins?';
assert(strcmpi(I_plead_the_fifth(question),'yes') || ...
strcmpi(I_plead_the_fifth(question),'no'))
answer =
'yes'
|
8 | Pass |
question = 'Do you have fifteen siblings?';
assert(isempty(I_plead_the_fifth(question)))
answer =
'yes'
answer =
[]
|
9 | Pass |
question = 'Do two quarters equal fifty cents?';
assert(isempty(I_plead_the_fifth(question)))
answer =
'yes'
answer =
[]
|
10 | Pass |
question = 'Do you own five dogs?';
assert(isempty(I_plead_the_fifth(question)))
answer =
'yes'
answer =
[]
|
11 | Pass |
question = 'Is my name Harry?';
assert(strcmpi(I_plead_the_fifth(question),'yes') || ...
strcmpi(I_plead_the_fifth(question),'no'))
answer =
'yes'
|
1726 Solvers
190 Solvers
Right Triangle Side Lengths (Inspired by Project Euler Problem 39)
511 Solvers
Area of an equilateral triangle
2759 Solvers
1141 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!