Answered step by step
Verified Expert Solution
Question
1 Approved Answer
C++ Homework In this homework you are asked to write a void function xCipher that takes two arrays of characters (plaintext, ciphertext) as parameters. The
C++
Homework In this homework you are asked to write a void function xCipher that takes two arrays of characters (plaintext, ciphertext) as parameters. The first array holds the plaintext while the second array holds the text after encryption or the ciphertext Your Function should read the plaintext array, encrypt it using xCipher algorithm then store it in the ciphertext array.. And test your function by writing the main The structure of your program Should be as follows //include directive:s II Define global variables // write the header of the function xC?pher void xcipher char plaintext, char ciphertext[) void maino //Define two arrays of characters to hold plaintext and cipher text //Prompt the user to enter the plaintext //Pass those arrays to xCipher function //Print the content of the cipher array // write the implementation of the function xCipher void XC?pher( char plaintext[], char ciphertext[]) // Read array plaintext character by character // find the substitution character and store it in the ciphertext arrayStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started