about | help | code help+videos | done | prefs |
(EASY) Given an input String and a password, return the String after a key-character Caesar cipher where all the input letters are shifted up by corresponding letters in the password ('A'==1, 'B'==2 etc.). After the last letter in the password is reached, the algorithm will wrap around to use the first letter again. Precondition: the input String will have only capital letters in it, the password will be all capital letters too. apcsaEncryptCaesarStringPassword("ABCDEFGHIJKLMNOPQRSTUVWXYZ", "PASSWORD") → "QCVWBUYLYKDEJCGTGSLMRKOBOA" apcsaEncryptCaesarStringPassword("HI", "B") → "JK" apcsaEncryptCaesarStringPassword("THISMACHINEKILLSFASCISTS", "ABC") → "UJLTODDJLOGNJNOTHDTELTVV" ...Save, Compile, Run (ctrl-enter) |
Progress graphs:
Your progress graph for this problem
Random user progress graph for this problem
Random Epic Progress Graph
Difficulty: 350
Copyright Nick Parlante 2017 - privacy