Cody

# Problem 42441. Code Wheel

Solution 1246094

Submitted on 4 Aug 2017
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

### Test Suite

Test Status Code Input and Output
1   Fail
n = 3; str = 'Hello World!'; correct = 'Khoor Zruog!'; assert(isequal(codewheel(str,n),correct))

out = 'Hello World!'

Assertion failed.

2   Fail
n = -6; str = 'Punctuation won''t be *too* much of a problem, will it?'; correct = 'Johwnouncih qih''n vy *nii* gowb iz u jlivfyg, qcff cn?'; assert(isequal(codewheel(str,n),correct))

out = 'Punctuation won't be *too* much of a problem, will it?'

Assertion failed.

3   Fail
n = 72; str = 'Words, words, words.'; correct = 'Qilxm, qilxm, qilxm.' assert(isequal(codewheel(str,n),correct))

correct = 'Qilxm, qilxm, qilxm.' out = 'Words, words, words.'

Assertion failed.

4   Pass
n = -286 str = 'Massively negative values for ''n'' shouldn''t pose a problem.' correct = 'Massively negative values for ''n'' shouldn''t pose a problem.' assert(isequal(codewheel(str,n),correct))

n = -286 str = 'Massively negative values for 'n' shouldn't pose a problem.' correct = 'Massively negative values for 'n' shouldn't pose a problem.' out = 'Massively negative values for 'n' shouldn't pose a problem.'