Caesar cipher, C/C++ Programming

Assignment Help:

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


Related Discussions:- Caesar cipher

When should you employ multiple inheritance?, Q: When should you employ mul...

Q: When should you employ multiple inheritance? A:There  are  three  acceptable  answers:-  "Rarely," "Never," and  "while  the  problem  domain cannot be modeled accurately any

Program that computes square matrix multiplication, Goal: Design a progr...

Goal: Design a program that computes square matrix multiplication on GPU using CUDA. Write the code in C. In particular, your implementation should obey the following requiremen

Explain control flow, Control Flow The control flow statements are used...

Control Flow The control flow statements are used when it is needed that the flow of the program is to be changed after taking some decision. This control flow statement theref

Calculate the area and circumference of a circle , Write a program which in...

Write a program which incorporates a function named compute and which is used to calculate the area and circumference of a circle. Use the main function for inputs and outputs.

Stack push pop, 2 flowcharts, pseudocode for each (at least 4 algorithms), ...

2 flowcharts, pseudocode for each (at least 4 algorithms), and code for either a stack or a queuestion..

Explain bit-wise operators, Bit-wise Operators Some applications requir...

Bit-wise Operators Some applications require operations to be done on dissimilar bits of a byte separately. Bit-wise operators offer a facility to do just that. There are vario

Data types, #question write a prog c & cpp

#question write a prog c & cpp

Palindrome, Problem : Change to palindrome A palindrome is a string that r...

Problem : Change to palindrome A palindrome is a string that reads the same from both the ends. Given a string S convert it to a palindrome by doing character replacement. Your ta

Write Your Message!

Captcha
Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd