Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 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 functionsStep 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