Question: Create a C program: A caesar cipher is a simple cipher that shifts letters in a string. For example, shifting ab over by 1 would

Create a C program:
A caesar cipher is a simple cipher that shifts letters in a string. For example, shifting ab over by 1 would result in bc, and shifting xyz over by 2 would result in zab. The caesar program should take, in the command line an integer k, the amount to shift some text by, and a string f i l e, the name of a file containing text to encode using the cipher.
For example, suppose secret.txt contains defend the east wall of the castle, then running caesar with 3 should result in the following:
$ cat secret.txt
defend the east wall of the castle
$ ./caesar 3 secret.txt
ghihqg wkh hdvw zdoo ri wkh fdvwoh

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!