Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Solution 268778

Submitted on 27 Jun 2013 by Christopher

Correct

8Size
Leading solution size is 6.
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

Test Suite

Test
Code Input and Output
1
Pass
 
%%
x = 'Do you like your boss?';
y_correct = 'Any String!';
assert(isequal(isstr(YourBoss(x)),isstr(y_correct)))
ans =
3
2
Pass
 
%%
x = 'Does your boss smell funny?';
y_correct = 'Any String!';
assert(isequal(isstr(YourBoss(x)),isstr(y_correct)))
ans =
3
3
Pass
 
%%
x = 'Is your boss a man or a woman?';
y_correct = 'Any String!';
assert(isequal(isstr(YourBoss(x)),isstr(y_correct)))
ans =
3
4
Pass
 
%%
x = 'Is your boss mean or nice?';
y_correct = 'Any String!';
assert(isequal(isstr(YourBoss(x)),isstr(y_correct)))
ans =
3
5
Pass
 
%%
x = 'Do you see your boss often?';
y_correct = 'Any String!';
assert(isequal(isstr(YourBoss(x)),isstr(y_correct)))
ans =
3
6
Pass
 
%%
x = 'If your boss were an animal, what type of animal would he or she be?';
y_correct = 'Any String!';
assert(isequal(isstr(YourBoss(x)),isstr(y_correct)))
ans =
3
7
Pass
 
%%
x = 'On a scale from one to ten, where does your boss rank?';
y_correct = 'Any String!';
assert(isequal(isstr(YourBoss(x)),isstr(y_correct)))
ans =
3
8
Pass
 
%%
x = 'Maybe you are your own boss...';
y_correct = 'Any String!';
assert(isequal(isstr(YourBoss(x)),isstr(y_correct)))
ans =
3
9
Pass
 
%%
x = 'Maybe your boss is standing behind you, with that glare on his face, tapping his foot with his arms folded...';
y_correct = 'Any String!';
assert(isequal(isstr(YourBoss(x)),isstr(y_correct)))
ans =
3