Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

in c++ Square code is a simple transposition cipher that utilizes a square (or rectangle) arrangement of your plain text to create a ciphertext. You

in c++ image text in transcribed
image text in transcribed
Square code is a simple transposition cipher that utilizes a square (or rectangle) arrangement of your plain text to create a ciphertext. You will write a program that allows the user to type a message of any length, then encode it using an appropriately sized 2D array Requirements . Name the source file for your program program8.cpp . Prompt the user to type in a message - You must strip all whitespace and common punctuation marks Tabs, spaces, new lines, and carriage returns count as white space Period, comma, apostrophe, exclamation mark, and question mark count as com- mon punctuation . The message will then be inserted into a dynamic 2D array - The dynamic array will always have 12 columns - It is up to you to determine how many rows are required . You are only expected to encode the message . A sample run of your program shall look like NOTE: The message and encoded output are both just one line, breaks were added for visibility NOTE: The '# are actually in the array Enter a message to be encoded: good look at how he treats his inferiors, not his equals. J.K. Rowling IFYOUWANTTOK NOWWHATAMAN S LIKETAKEAG0 0 TREATSHISINF ERIORSNOTHI S EQUAL SJKROWL INLDTEEI FOILRRON YWKOEIUG OWEOA0A UHTKTRL WAAASSS ATKTHNJ NAEHIOK TMAOSTR TAGWIHO ONOHNIW KSOEFSL

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

OpenStack Trove

Authors: Amrith Kumar, Douglas Shelley

1st Edition

1484212215, 9781484212219

More Books

Students also viewed these Databases questions

Question

Find the rate of return for the following cash flow

Answered: 1 week ago