Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Lära Challenge: Caesar Cipher Encoder | Text Analysis & Simple Ciphers
C# Strings & Text Processing

bookChallenge: Caesar Cipher Encoder

Uppgift

Swipe to start coding

Implement a function that encodes a message using a Caesar cipher with a specified shift value. The Caesar cipher shifts each letter in the message by the given amount, wrapping around the alphabet if necessary. Non-letter characters should remain unchanged.

  • Shift each uppercase and lowercase letter in message by shift positions in the alphabet.
  • Preserve the case of each letter.
  • Do not change any non-letter characters.
  • Return the encoded string.

Lösning

Var allt tydligt?

Hur kan vi förbättra det?

Tack för dina kommentarer!

Avsnitt 3. Kapitel 6
single

single

Fråga AI

expand

Fråga AI

ChatGPT

Fråga vad du vill eller prova någon av de föreslagna frågorna för att starta vårt samtal

close

bookChallenge: Caesar Cipher Encoder

Svep för att visa menyn

Uppgift

Swipe to start coding

Implement a function that encodes a message using a Caesar cipher with a specified shift value. The Caesar cipher shifts each letter in the message by the given amount, wrapping around the alphabet if necessary. Non-letter characters should remain unchanged.

  • Shift each uppercase and lowercase letter in message by shift positions in the alphabet.
  • Preserve the case of each letter.
  • Do not change any non-letter characters.
  • Return the encoded string.

Lösning

Switch to desktopByt till skrivbordet för praktisk övningFortsätt där du är med ett av alternativen nedan
Var allt tydligt?

Hur kan vi förbättra det?

Tack för dina kommentarer!

Avsnitt 3. Kapitel 6
single

single

some-alt