Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

c++ please! Question 1 In cryptography, Caesar cipher is one of the simplest encryption techniques. The key idea of this method is to replace each

c++ please! Question 1 In cryptography, Caesar cipher is one of the simplest encryption techniques. The key idea of this method is to replace each plaintext letter with one fixed number of places down the alphabet. Below is an example with a shift of five:

Plain: ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz

Cipher: FGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyzABCDE

To cipher a string, A is replaced by F, B is substituted by G, and so on.

To decode a string, A is replaced by v, etc.

Write a program that takes a string: M Go Blue Beat Ohio State as an input in main. Main allocates a 2 dimensional array, long enough to hold the string above. It moves the message above into the first row. It then passes the array (by reference) and the length of the array to a function called encode. Encode will encode the characters in the first row and place them in the second row and return. Main will print out the original content, then the encoded content directly under the original content. Take a screenshot.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Design And Relational Theory Normal Forms And All That Jazz

Authors: Chris Date

1st Edition

1449328016, 978-1449328016

More Books

Students also viewed these Databases questions

Question

I didnt know who to talk to.

Answered: 1 week ago