Please dont use pointers or other very high level stuff. I think ASCII codes cou
ID: 3625399 • Letter: P
Question
Please dont use pointers or other very high level stuff. I think ASCII codes could dothe trick for this problem, but im not sure...
Caesar Cypher Algorithm
Example:
Let, shift parameter = 3
Plain: ABCDEFGHIJKLMNOPQRSTUVWXYZ
Cypher: DEFGHIJKLMNOPQRSTUVWXYZABC
Plain Text: “Solve to unveil the mysteries of the elders”
Cypher-text: “vroyh wr xqyho wkh pbvwhulhv ri wkh hoghuv”
REQUIREMENTS ARE : To design a menu to select encryption or decryption.User input string is always 36 characters.User defined shift parameter for Caesar cypher.Encrypted or decrypted output (i.e. either plaintext or cyphertext) as per user’s choice.
Explanation / Answer
//Here you go, it should work fine now #include #include using namespace std; int main(void) { int choice=0; int shift=0; int walker=0; string input; char code[26]={'A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R','S','T','U','V','W','X','Y','Z'}; char cypher[26]; do{ coutRelated Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.