Question: PROGRAM MUST CONTAIN fileSize,caesar and readAndEncode FUNCTIONS. A caesar cipher is a simple cipher that shifts letters in a string. For example, shifting ab over

 PROGRAM MUST CONTAIN fileSize,caesar and readAndEncode FUNCTIONS. A caesar cipher is

PROGRAM MUST CONTAIN fileSize,caesar and readAndEncode FUNCTIONS.

A caesar cipher is a simple cipher that shifts letters in a string. For example, shifting ab over by I 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 file, 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 ghihgg wkh hdvw zdoo ri wkh fdvwoh The function prototypes are in caesar.c. You must implement the fileSize, caesar, and readAndEncode functions

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!