subject

For this program, you will write a chunk based decryption program. study the base code and make the following changes: • implement loop over each string in the array of message chunks (strings) and print it. each chunk should be printed back to back, do not insert an extra newline. do not print the rst character in each string since it is only used to store the order of the chunks. (hint: use pointer arithmetic to skip a character.) [2 points] • implement loop over each string in the array and shift the characters in it by subtracting decryption_shift value from them. use pointer arithmetic to access individual characters but array access to the strings. remember that c-style strings have a null terminator at the end. do not apply the shift to the terminator. (hint: to avoid doing double pointer arithmatic, save a char* pointer to the active chunk[? ] in the outer loop but before the inner loop. then the inner loop is only concerned with a single array of characters rather than an array of strings.) [4 points] • implement using your favorite sorting algorithm, sort the array containing the message chunks. sort based on the rst character in the chunk - it will always be a number. we provide a swap_strings function that you may use. example usage: swap_strings(chunks[0], chunks[1]) will swap the contents of the rst and second string. [10 points]

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 03:20
Which of these is a benefit of social networking? oa. hiding your true identity from friendsob. avoiding talking to people in personoc. spending time with friends instead of studyingod. connecting with new people
Answers: 2
question
Computers and Technology, 22.06.2019 17:30
Type the correct answer in the box. spell all words correctly. under which key category do the page up and page down keys fall? page up and page down keys fall under the keys category.
Answers: 3
question
Computers and Technology, 22.06.2019 22:30
Who needs to approve a change before it is initiated? (select two.) -change board -client or end user -ceo -personnel manager -project manager
Answers: 1
question
Computers and Technology, 23.06.2019 02:50
Define a class named movie. include private fields for the title,year, and name of the director. include three public functions withprototypes void movie: : settitle(cstring); , voidmovie: : setyear(int); , void movie: : setdirector(string); . includeanother function that displays all the information about a movie.write a main() function that declares a movie object namedmyfavoritemovie. set and display the object's fields.this is what i have but know its wrong since it will notcompile: #include#includeusing namespace std; //class declarationclass movie{private: string movietitle ; string movieyear; string directorname; public: void settitle(string title); void setyear(string year); void setdirector(string director); void displayinfo(); }; //class implementationvoid movie: : settitle(string title){ movietitle = title; cout< < "what is the title of themovie? "< > temp; myfavoritemovie.settitle(temp); cout< < "enter movie year"< > temp; myfavoritemovie.setyear(temp); cout< < "enter director'sname"< > temp; myfavoritemovie.setdirector(temp); //display all the data myfavoritemovie.displayinfo(); system("pause"); return 0; this code is not entirely mine someone on cramster edited my firstcode but then i try manipulating the new code and i still get acompile error message : \documents\visual studio 2008\projects\movie\movie\movie.cpp(46) : error c2679: binary '< < ' : no operator found which takes aright-hand operand of type 'std: : string' (or there is no acceptableconversion)c: \program files (x86)\microsoft visual studio9.0\vc\include\ostream(653): could be'std: : basic_ostream< _elem,_traits> & std: : operator< < > (std: : basic_ostream< _elem,_traits> & ,const char *)w
Answers: 1
You know the right answer?
For this program, you will write a chunk based decryption program. study the base code and make the...
Questions
Questions on the website: 13722367