Caesar Shift Cipher, HLA
Programming
If you do not know how to do it please do not do it.
Assignment 2: Caesar Shift Cipher:
read 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
#write essay #research paper #blog writing #article writing #academic writer #reflective paper #essay pro #types of essays #write my essay #reflective essay #paper writer #essay writing service #essay writer free #essay helper #write my paper #assignment writer #write my essay for me #write an essay for me #uk essay #thesis writer #dissertation writing services #writing a research paper #academic essay #dissertation help #easy essay #do my essay #paper writing service #buy essay #essay writing help #essay service #dissertation writing #online essay writer #write my paper for me #types of essay writing #essay writing website #write my essay for free #reflective report #type my essay #thesis writing services #write paper for me #research paper writing service #essay paper #professional essay writers #write my essay online #essay help online #write my research paper #dissertation writing help #websites that write papers for you for free #write my essay for me cheap #pay someone to write my paper #pay someone to write my research paper
#Essaywriting #Academicwriting #Assignmenthelp #Nursingassignment #Nursinghomework #Psychologyassignment #Physicsassignment #Philosophyassignment #Religionassignment #History #Writing #writingtips #Students #universityassignment #onlinewriting #savvyessaywriters #onlineprowriters #assignmentcollection #excelsiorwriters #writinghub #study #exclusivewritings #myassignmentgeek #expertwriters #art #transcription #grammer #college #highschool #StudentsHelpingStudents #studentshirt #StudentShoe #StudentShoes #studentshoponline #studentshopping #studentshouse #StudentShoutout #studentshowcase2017 #StudentsHub #studentsieuczy #StudentsIn #studentsinberlin #studentsinbusiness #StudentsInDubai #studentsininternational
