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 02:00
Consider how gaming consoles initially relied on joysticks and joypads and then made the switch to modern gaming controls, which include analog sticks, buttons and switches, touch controls, accelerometers, motion controls, etc. name at least two kinds of gaming experiences that are possible with these new control devices but were not possible on original joysticks. explain how new technologies made this newer game style possible.
Answers: 1
question
Computers and Technology, 22.06.2019 17:30
Ou listened to a song on your computer. did you use hardware or software?
Answers: 2
question
Computers and Technology, 23.06.2019 09:30
Light travels at a speed of 186,000 miles a second. the distance light travels in a year is 5,865,690,000,000 miles/year 5,865,695,000,000 miles/year 58,656,950,000,000 miles/year 6,789,000,0000 miles/year
Answers: 1
question
Computers and Technology, 23.06.2019 15:00
Visually impaired individuals generally rely on the for navigation. thus, designers need to ensure that mouse-specific inputs, such as pointing, clicking, and hovering, can be done without a mouse.
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
question
Biology, 12.10.2020 01:01
question
Mathematics, 12.10.2020 01:01
Questions on the website: 13722360