caesar shift cipher hla
If you do not know how to do it please do not do it.
Assignment 2: Caesar Shift Cipher:
Save your time - order a paper!
Get your paper written from scratch within the tight deadline. Our service is a reliable solution to all your troubles. Place an order on any task and we will take care of it. You won’t have to worry about the quality and deadlines
Order Paper Nowread in a STREAM of text, (not just a line, a stream of_x000D_ arbitrary length,) a char at a time, and as you do so,_x000D_ shift each >>>letter<<< forward in the alphabet a certain_x000D_ number of places. The number of places is read from the_x000D_ command line in argc[1], and turned into an int with:_x000D_ _x000D_ (in C we'd do this:)_x000D_ int shift = atoi( argc[1]) ;_x000D_ Now look at args.hla and atoi.hla. Much that is hidden comes to light:)._x000D_ _x000D_ Example:_x000D_ _x000D_ shift 13_x000D_ Hello, Jack_x000D_ Uryyb, Wnpx_x000D_ _x000D_ READ THE COMMAND LINE FOR AN INTEGER IN ARGV[1]_x000D_ _x000D_ Run it through conv.atoi() to convert the command line string to an integer:_x000D_ _x000D_ an integer shift variable should now = conv.atoi( the string value from the command line) ;_x000D_ _x000D_ you're using arg.c and arg.v to isolate the second command line string, and then_x000D_ convert it to an integer value to control the shift._x000D_ _x000D_ Remember that if you shift a letter off the end of the alphabet, we must _x000D_ "wrap around" so we come back in down by 'a'._x000D_ _x000D_ Here's the pseudocode:_x000D_ _x000D_ read in a character c_x000D_ _x000D_ if (c is a letter )_x000D_ {_x000D_ make c lowercase_x000D_ _x000D_ make c a number between 0 and 25_x000D_ _x000D_ add the shift value to c_x000D_ _x000D_ mod c so it's between 0 and 25 again_x000D_ _x000D_ add a 'a' to c so it's a real ASCII letter again._x000D_ }_x000D_ print c on the output // this happens for ALL input, not just letters!_x000D_ _x000D_ make sure to do all the args.hla and atoi.hla
requirements