this task involves char arrays and pointer based


This task involves char arrays and pointer based string handling. Which we use to make a simple encryption program, using a Caesar Cipher,

Write a program that:

a. Asks the user to input a line of test

i. Converts this text so it is suitable for encryption

1. Converted to all be in lower case

2. Remove all non-letter characters

ii. This is the plain text.

b. Calls a function getLength which:

i. Takes one argument - the input string

ii. Returns the length of the string (excluding the NULL terminator)

c. Prints the length of the input string

d. Ask the user for the shift value.

e. Call a function makeCypher which:

i. Takes the shift value as an argument

ii. Returns the "Ciphertext alphabet" based on that keyword

f. Calls a function encrypt which

i. Takes two arguments

1. The input string

2. The "Ciphertext alphabet"

3. The "Group Count"

ii. Returns the input string suitably encrypted with the code and in set of characters "Group Count" long with any leftover spaces filled with random characters

Request for Solution File

Ask an Expert for Answer!!
C/C++ Programming: this task involves char arrays and pointer based
Reference No:- TGS0204112

Expected delivery within 24 Hours