Question: Could you solve this code for me please.and if you can write some explanation using 2 D array please not a vecor Thank you Question

Could you solve this code for me please.and if you can write some explanation using 2D array please not a vecor
Thank you
Question 2: Write a CPP program that solves the following problem:
Problem:
A computer science professor designed an algorithm, the algorithm is used to encrypt or decrypt a message. The algorithm uses a matrix of size 66 as shown in figure below:
\table[[,0,1,2,,,],[),A,B,,D,F,],[,G,H,x,J,,],[2,M,N,O,P,,],[3,S,T,U,V,W,],[,Y,Z,0,1,2,],[,4,5,6,7,8,]]
Algorithm:
(1) Input InputMessage
(2) Get length of InputMessage
(3) Loop from i=0 to i length
a. Capitalize InputMessage[i] character if alphapet lower case, (a lower case character is converted to upper case by subtracting 32 from it).
b. Search for character InputMessage[i] in matrix to get its location
c. If character found in matrix[Row][Col] then, take the corresponding character in matrix[Col][Row] and insert into OuputMessage.
d. If character not found then insert space character into OutputMessage
(4) Print the outputMessage
(5) End.
Di:
In
The user should input a string as an InputMessage to encrypt or decrypt
Page 3 of 8
Output:
The program should print the encrypted or decrypted message
Sample Program Execution:
Sample(1):
Enter a message to encrypt or decrypt
My Name is Marwan ElHaj,I am 50 years old
Message after Encrypting or Decrypting is:
CE IACY ND CA61AI Y5HAT N AC LQ EYA6D 05S
Sample(2):
Enter a message to encrypt or decrypt CE IACY ND CA61AI Y5HAT N AC LQ EYA6D 05S
Message after Encrypting or Decrypting is:
MY NAME IS MARWAN ELHAJ I AM 50 YEARS OLD
 Could you solve this code for me please.and if you can

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!