Please help to answer the following C++ coding questions There is full PDF assig
ID: 3886801 • Letter: P
Question
Please help to answer the following C++ coding questions
There is full PDF assignment link:
https://drive.google.com/file/d/0B71aPXjwn2AZZjRzVi1QRDI1NUE/view?usp=sharing
handout file link:
https://drive.google.com/file/d/0B71aPXjwn2AZbzlOaS05dVVabzA/view?usp=sharing
Please only help with those questions in the assignment, I will rate the answer, please do it seriously.
1) (1.5 point each, 6 total) Suppose a file named "letters" contains the following characters: aabbccddeeffgghhiijjkkll a. What is the name of the file created by the function call unzip file("letters"); b. Write the contents of the file written by the function call unzip file("letters"); c. What is the name of the file created by the function call zip file("letters"); d. Write the contents of the file written by the function call zip file("letters") (2 points) Compute the bitwise XOR between 10010100 and 11191010. (2 points) Suppose you are looking at the byte at index byte_pos in the file you are encrypting in a call to encrypt_file. Assuming std::string password stores the password you are using to encrypt, write the line of code to get the respective character to XOR with the current byte. 2) 3)Explanation / Answer
01100001 – 1 01100001 – 2 01100010 - 3 01100010 – 4 01100011 – 5 01100011 – 6 01100100 – 7 01100100 – 8 01100101 – 9 01100101 -10 01100110 - 11 01100110 – 12 01100111 – 13 01100111 – 14 01101000 – 15 01101000 – 16 01101001 -17 01101001 -18 01101010 - 19 01101010 -20 01101011 – 21 01101011 – 22 01101100 – 23 01101100 – 24
01100001 – 1 01100010 - 3 01100011 – 5 01100100 – 7 01100101 – 9 01100110 - 11 01100111 – 13 01101000 – 15 01101001 -17 01101010 - 19 01101011 – 21 01101100 – 23 01100001 – 2 01100010 – 4 01100011 – 6 01100100 – 8 01100101 -10 01100110 – 12 01100111 – 14 01101000 – 16 01101001 -18 01101010 -20 01101011 – 22 01101100 – 24
Output will be :
abcdefghijklabcdefghijkl
c. letters-zipped
d. do the opposite of unzipped then the output will be:
aabbccddeeffgghhiijjkkll
2. 1111110 (please refer to the XOR table in the pdf given by you, in page no 3)
3. Will you please give me the coding which is given under testing section in that pdf. So that I can answer this question with exact expectation .
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.