id/email
password
forgot password | create account
about | help | code help+videos | done | prefs
CodingBat code practice

 

orion.a.smith@gmail.com apcsa-encryption > apcsaEncryptCaesarCharKey
prev  |  next  |  chance

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)

public char apcsaEncryptCaesarCharKey(char c, char key) { }

Editor font size %:
Shorter output


Forget It! -- delete my code for this problem

Progress graphs:
 Your progress graph for this problem
 Random user progress graph for this problem
 Random Epic Progress Graph

Java Help

Misc Code Practice

Difficulty: 320

Copyright Nick Parlante 2017 - privacy