The Caesar Cipher: Privacy in communication has been an issue ever since the dawn of time. To prevent people from stealing information, w "Encrypt" and "Decrypt" it in several ways. To encrypt something means that the message gets translated into a secret code that only the people involved can understand, decrypt is the opposite procedure. One of the oldest methods of encryption is called the Caesar Cipher Named after the dictator Julius Caesar). It consists of assigning every letter a number value and writing the word as a sequence of numbers. Consider the Caesar cipher where each character gets assigned its value in the ASCII code. a b C d C f 97 98 99 100 101 102 g h i j k 1 103 m 104 105 106 107 108 109 n O a Input I hi there S 110 t 111 The problem is to create a C++ program that receives an encrypted message, translates it, then receives an answer from the user in English and encrypts it. To do this and get full marks you are to create 5 functions, both the function prototypes and the main unction are provided. 112 113 114 115 116 u 117 V W X 5 104 101 108 108 111 118 y 119 .A function that reads the input array. . A function that translates the input and prints the translated message. 120 . A function that reads a string and returns it. . A function that receives a string of letters and encrypts it, returning an array. . A function that prints the answer array. 121 Z 122 Input: The first number N it receives is the length of the received code, then it receives a sequence of N integers. After printing the translated message it should read your answer to be translated. Example: Output hello Assume it always receives a valid input, this is, N 2 1, all numbers in the original code are between 0 and 26 and all the characters i the response are either a space or lowercase letters. 104 105 32 116 104 101 114 101
The Caesar Cipher: Privacy in communication has been an issue ever since the dawn of time. To prevent people from stealing information, w "Encrypt" and "Decrypt" it in several ways. To encrypt something means that the message gets translated into a secret code that only the people involved can understand, decrypt is the opposite procedure. One of the oldest methods of encryption is called the Caesar Cipher Named after the dictator Julius Caesar). It consists of assigning every letter a number value and writing the word as a sequence of numbers. Consider the Caesar cipher where each character gets assigned its value in the ASCII code. a b C d C f 97 98 99 100 101 102 g h i j k 1 103 m 104 105 106 107 108 109 n O a Input I hi there S 110 t 111 The problem is to create a C++ program that receives an encrypted message, translates it, then receives an answer from the user in English and encrypts it. To do this and get full marks you are to create 5 functions, both the function prototypes and the main unction are provided. 112 113 114 115 116 u 117 V W X 5 104 101 108 108 111 118 y 119 .A function that reads the input array. . A function that translates the input and prints the translated message. 120 . A function that reads a string and returns it. . A function that receives a string of letters and encrypts it, returning an array. . A function that prints the answer array. 121 Z 122 Input: The first number N it receives is the length of the received code, then it receives a sequence of N integers. After printing the translated message it should read your answer to be translated. Example: Output hello Assume it always receives a valid input, this is, N 2 1, all numbers in the original code are between 0 and 26 and all the characters i the response are either a space or lowercase letters. 104 105 32 116 104 101 114 101
Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
Related questions
Question
C++ please
Expert Solution
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
This is a popular solution!
Trending now
This is a popular solution!
Step by step
Solved in 2 steps with 3 images
Knowledge Booster
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.Recommended textbooks for you
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education