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, 21.06.2019 12:30
Which is the best web development company in pakistan?
Answers: 1
question
Computers and Technology, 21.06.2019 19:30
Why is it a good idea to leave an interview being courteous and polite?
Answers: 1
question
Computers and Technology, 22.06.2019 18:30
Which of the following is an example of intellectual properly! oa. new version of a novelb. journal of ideasc. pages of a bookood. lines of a poem
Answers: 2
question
Computers and Technology, 23.06.2019 10:00
What is estimated time of arrival (eta)? a device that measures the acceleration (the rate of change of velocity) of an item and is used to track truck speeds or taxi cab speeds a gps technology adventure game that posts the longitude and latitude location for an item on the internet for users to find a north/south measurement of position the time of day of an expected arrival at a certain destination and is typically used for navigation applications
Answers: 3
You know the right answer?
For this program, you will write a chunk based decryption program. study the base code and make the...
Questions
question
Mathematics, 28.09.2019 07:20
question
Mathematics, 28.09.2019 07:20
Questions on the website: 13722363