Cody

Solution 1583372

Submitted on 14 Jul 2018 by bainhome
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   Pass
n = 3; str = 'Hello World!'; correct = 'Khoor Zruog!'; assert(isequal(codewheel(str,n),correct))

2   Pass
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))

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

correct = 'Qilxm, qilxm, qilxm.'

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.'