Cody

Solution 1584411

Submitted on 16 Jul 2018 by Hans Kramer
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
assessFunctionAbsence({'regexp','regexpi','regexprep','str2num'},'FileName','mtimes.m')

2   Pass
assert(isequal("cody" * 5, "codycodycodycodycody"))

c = 5 d = "cody" y = "cody" y = "codycody" y = "codycodycody" y = "codycodycodycody" y = "codycodycodycodycody"

3   Pass
assert(isequal("cody" * 5, "cody" * 2 + "cody" * 3))

c = 5 d = "cody" y = "cody" y = "codycody" y = "codycodycody" y = "codycodycodycody" y = "codycodycodycodycody" c = 2 d = "cody" y = "cody" y = "codycody" c = 3 d = "cody" y = "cody" y = "codycody" y = "codycodycody"

4   Pass
assert(isequal(" Cody is fun! Cody is fun! Cody is fun!", 3 * " Cody is fun!"))

c = 3 d = " Cody is fun!" y = " Cody is fun!" y = " Cody is fun! Cody is fun!" y = " Cody is fun! Cody is fun! Cody is fun!"

5   Pass
assert(isequal(" Cody 5-Year Anniversary! Cody 5-Year Anniversary!", " Cody 5-Year Anniversary!" * 2))

c = 2 d = " Cody 5-Year Anniversary!" y = " Cody 5-Year Anniversary!" y = " Cody 5-Year Anniversary! Cody 5-Year Anniversary!"

6   Pass
x = ["Cody";"matlab";"Simulink";"@Mathworks"] + (5:5:randi([1000,5000])); assert(isequal(x*2,x+x)) assert(isequal(x*3,x+x+x)) assert(isequal(5*x,x+x+x+x+x)) assert(isequal(101*x,x+100*x))

c = 2 d = 4×563 string array Columns 1 through 10 "Cody5" "Cody10" "Cody15" "Cody20" "Cody25" "Cody30" "Cody35" "Cody40" "Cody45" "Cody50" "matlab5" "matlab10" "matlab15" "matlab20" "matlab25" "matlab30" "matlab35" "matlab40" "matlab45" "matlab50" "Simulink5" "Simulink10" "Simulink15" "Simulink20" "Simulink25" "Simulink30" "Simulink35" "Simulink40" "Simulink45" "Simulink50" "@Mathworks5" "@Mathworks10" "@Mathworks15" "@Mathworks20" "@Mathworks25" "@Mathworks30" "@Mathworks35" "@Mathworks40" "@Mathworks45" "@Mathworks50" Columns 11 through 20 "Cody55" "Cody60" "Cody65" "Cody70" "Cody75" "Cody80" "Cody85" "Cody90" "Cody95" "Cody100" "matlab55" "matlab60" "matlab65" "matlab70" "matlab75" "matlab80" "matlab85" "matlab90" "matlab95" "matlab100" "Simulink55" "Simulink60" "Simulink65" "Simulink70" "Simulink75" "Simulink80" "Simulink85" "Simulink90" "Simulink95" "Simulink100" "@Mathworks55" "@Mathworks60" "@Mathworks65" "@Mathworks70" "@Mathworks75" "@Mathworks80" "@Mathworks85" "@Mathworks90" "@Mathworks95" "@Mathworks100" Columns 21 through 29 "Cody105" "Cody110" "Cody115" "Cody120" "Cody125" "Cody130" "Cody135" "Cody140" "Cody145" "matlab105" "matlab110" "matlab115" "matlab120" "matlab125" "matlab130" "matlab135" "matlab140" "matlab145" "Simulink105" "Simulink110" "Simulink115" "Simulink120" "Simulink125" "Simulink130" "Simulink135" "Simulink140" "Simulink145" "@Mathworks105" "@Mathworks110" "@Mathworks115" "@Mathworks120" "@Mathworks125" "@Mathworks130" "@Mathworks135" "@Mathworks140" "@Mathworks145" Columns 30 through 38 "Cody150" "Cody155" "Cody160" "Cody165" "Cody170" "Cody175" "Cody180" "Cody185" "Cody190" "matlab150" "matlab155" "matlab160" "matlab165" "matlab170" "matlab175" "matlab180" "matlab185" "matlab190" "Simulink150" "Simulink155" "Simulink160" "Simulink165" "Simulink170" "Simulink175" "Simulink180" "Simulink185" "Simulink190" "@Mathworks150" "@Mathworks155" "@Mathworks160" "@Mathworks165" "@Mathworks170" "@Mathworks175" "@Mathworks180" "@Mathworks185" "@Mathworks190" Columns 39 through 47 "Cody195" "Cody200" "Cody205" "Cody210" "Cody215" "Cody220" "Cody225" "Cody230" "Cody235" "matlab195" "matlab200" "matlab205" "matlab210" "matlab215" "matlab220" "matlab225" "matlab230" "matlab235" "Simulink195" "Simulink200" "Simulink205" "Simulink210" "Simulink215" "Simulink220" "Simulink225" "Simulink230" "Simulink235" "@Mathworks195" "@Mathworks200" "@Mathworks205" "@Mathworks210" "@Mathworks215" "@Mathworks220" "@Mathworks225" "@Mathworks230" "@Mathworks235" Columns 48 through 56 "Cody240" "Cody245" "Cody250" "Cody255" "Cody260" "Cody265" "Cody270" "Cody275" "Cody280" "matlab240" "matlab245" "matlab250" "matlab255" "matlab260" "matlab265" "matlab270" "matlab275" "matlab280" "Simulink240" "Simulink245" "Simulink250" "Simulink255" "Simulink260" "Simulink265" "Simulink270" "Simulink275" "Simulink280" "@Mathworks240" "@Mathworks245" "@Mathworks250" "@Mathworks255" "@Mathworks260" "@Mathworks265" "@Mathworks270" "@Mathworks275" "@Mathworks280" Columns 57 through 65 "Cody285" "Cody290" "Cody295" "Cody300" "Cody305" "Cody310" "Cody315" "Cody320" "Cody325" "matlab285" "matlab290" "matlab295" "matlab300" "matlab305" "matlab310" "matlab315" "matlab320" "matlab325" "Simulink285" "Simulink290" "Simulink295" "Simulink300" "Simulink305" "Simulink310" "Simulink315" "Simulink320" "Simulink325" "@Mathworks285" "@Mathworks290" "@Mathworks295" "@Mathworks300" "@Mathworks305" "@Mathworks310" "@Mathworks315" "@Mathworks320" "@Mathworks325" Columns 66 through 74 "Cody330" "Cody335" "Cody340" "Cody345" "Cody350" "Cody355" "Cody360" "Cody365" "Cody370" "matlab330" "matlab335" "matlab340" "matlab345" "matlab350" "matlab355" "matlab360" "matlab365" "matlab370" "Simulink330" "Simulink335" "Simulink340" "Simulink345" "Simulink350" "Simulink355" "Simulink360" "Simulink365" "Simulink370" "@Mathworks330" "@Mathworks335" "@Mathworks340" "@Mathworks345" "@Mathworks350" "@Mathworks355" "@Mathworks360" "@Mathworks365" "@Mathworks370" Columns 75 through 83 "Cody375" "Cody380" "Cody385" "Cody390" "Cody395" "Cody400" "Cody405" "Cody410" "Cody415" "matlab375" "matlab380" "matlab385" "matlab390" "matlab395" "matlab400" "matlab405" "matlab410" "matlab415" "Simulink375" "Simulink380" "Simulink385" "Simulink390" "Simulink395" "Simulink400" "Simulink405" "Simulink410" "Simulink415" "@Mathworks375" "@Mathworks380" "@Mathworks385" "@Mathworks390" "@Mathworks395" "@Mathworks400" "@Mathworks405" "@Mathworks410" "@Mathworks415" Columns 84 through 92 "Cody420" "Cody425" "Cody430" "Cody435" "Cody440" "Cody445" "Cody450" "Cody455" "Cody460" "matlab420" "matlab425" "matlab430" "matlab435" "matlab440" "matlab445" "matlab450" "matlab455" "matlab460" "Simulink420" "Simulink425" "Simulink430" "Simulink435" "Simulink440" "Simulink445" "Simulink450" "Simulink455" "Simulink460" "@Mathworks420" "@Mathworks425" "@Mathworks430" "@Mathworks435" "@Mathworks440" "@Mathworks445" "@Mathworks450" "@Mathworks455" "@Mathworks460" Columns 93 through 101 "Cody465" "Cody470" "Cody475" "Cody480" "Cody485" "Cody490" "Cody495" "Cody500" "Cody505" "matlab465" "matlab470" "matlab475" "matlab480" "matlab485" "matlab490" "matlab495" "matlab500" "matlab505" "Simulink465" "Simulink470" "Simulink475" "Simulink480" "Simulink485" "Simulink490" "Simulink495" "Simulink500" "Simulink505" "@Mathworks465" "@Mathworks470" "@Mathworks475" "@Mathworks480" "@Mathworks485" "@Mathworks490" "@Mathworks495" "@Mathworks500" "@Mathworks505" Columns 102 through 110 "Cody510" "Cody515" "Cody520" "Cody525" "Cody530" "Cody535" "Cody540" "Cody545" "Cody550" "matlab510" "matlab515" "matlab520" "matlab525" "matlab530" "matlab535" "matlab540" "matlab545" "matlab550" "Simulink510" "Simulink515" "Simulink520" "Simulink525" "Simulink530" "Simulink535" "Simulink540" "Simulink545" "Simulink550" "@Mathworks510" "@Mathworks515" "@Mathworks520" "@Mathworks525" "@Mathworks530" "@Mathworks535" "@Mathworks540" "@Mathworks545" "@Mathworks550" Columns 111 through 119 "Cody555" "Cody560" "Cody565" "Cody570" "Cody575" "Cody580" "Cody585" "Cody590" "Cody595" "matlab555" "matlab560" "matlab565" "matlab570" "matlab575" "matlab580" "matlab585" "matlab590" "matlab595" "Simulink555" "Simulink560" "Simulink565" "Simulink570" "Simulink575" "Simulink580" "Simulink585" "Simulink590" "Simulink595" "@Mathworks555" "@Mathworks560" "@Mathworks565" "@Mathworks570" "@Mathworks575" "@Mathworks580" "@Mathworks585" "@Mathworks590" "@Mathworks595" Columns 120 through 128 "Cody600" "Cody605" "Cody610" "Cody615" "Cody620" "Cody625" "Cody630" "Cody635" "Cody640" "matlab600" "matlab605" "matlab610" "matlab615" "matlab620" "matlab625" "matlab630" "matlab635" "matlab640" "Simulink600" "Simulink605" "Simulink610" "Simulink615" "Simulink620" "Simulink625" "Simulink630" "Simulink635" "Simulink640" "@Mathworks600" "@Mathworks605" "@Mathworks610"...