Answered step by step
Verified Expert Solution
Question
1 Approved Answer
(The cipher disk above shifts 'A' to 'N', 'B' to 'O', ... 'Z' to 'M', or a shift of 13. From secretcodebreaker.com.) Write a program
(The cipher disk above shifts 'A' to 'N', 'B' to 'O', ... 'Z' to 'M', or a shift of 13. From secretcodebreaker.com.)
Write a program that prompts the user to enter a word and then prints out the word with each letter shifted right by 13. That is, 'A' becomes 'N', 'B' becomes 'O', ... 'Y' becomes 'L', and 'Z' becomes 'M'.
Assume that all inputted words are in upper case letters: 'A',...,'Z'.
A sample run of your program should look like:
Enter an all-big-letter string: ZEBRA Enter a non-negative int to shift: 13 ciphered string: MROEN
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started