about | help | code help+videos | done | prefs |
apcsaEncryptCaesarCharKey
Given an input char and an input key, return the result of a one-character Caesar cipher where any letter is shifted up by the key letter's corresponding number ('A'==1, 'B'==2 etc.). Precondition: the input char and input key will have only a capital letter in it. apcsaEncryptCaesarCharKey("A", "A") → "B" apcsaEncryptCaesarCharKey("B", "B") → "D" apcsaEncryptCaesarCharKey("Z", "D") → "D" ...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: 320
Copyright Nick Parlante 2017 - privacy