This solution is outdated. To rescore this solution, sign in.
Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
s='non-essential personnel'
s_correct = 'non-eXsentXal peXsonnXl';
assert(isequal(string_furlough(s),s_correct))
s =
'non-essential personnel'
[Warning: Function assert has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.]
[Warning: Function assert has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.]
|
2 | Pass |
s='The furloughs will continue until morale improves.'
s_correct = 'The fXrlouXhs wiXl conXinue Xntil XoralX imprXves.';
assert(isequal(string_furlough(s),s_correct))
s =
'The furloughs will continue until morale improves.'
[Warning: Function assert has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.]
[Warning: Function assert has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.]
|
3 | Pass |
s='Who doesn''t like a 20% pay cut?'
s_correct='Who dXesn''t Xike a 20% Xay cuX?'
assert(isequal(string_furlough(s),s_correct))
s =
'Who doesn't like a 20% pay cut?'
s_correct =
'Who dXesn't Xike a 20% Xay cuX?'
[Warning: Function assert has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.]
[Warning: Function assert has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.]
|
4 | Pass |
s='The quick brown fox jumps over the lazy dog.'
s_correct = 'The qXick bXown fXx jumXs oveX the lXzy doX.';
assert(isequal(string_furlough(s),s_correct))
s =
'The quick brown fox jumps over the lazy dog.'
[Warning: Function assert has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.]
[Warning: Function assert has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.]
|
5 | Pass |
s='A-B-C. Easy as 1-2-3.';
s_correct = 'A-B-C. EXsy as 1-2-3.';
assert(isequal(string_furlough(s),s_correct))
[Warning: Function assert has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.]
[Warning: Function assert has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.]
|
6 | Pass |
s='My single favorite TV show is X-Files!';
s_correct='My siXgle fXvoriXe TV sXow is X-FileX!';
assert(isequal(string_furlough(s),s_correct))
[Warning: Function assert has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.]
[Warning: Function assert has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.]
|
199 Solvers
380 Solvers
Number of digits in an integer
336 Solvers
130 Solvers
158 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!