Please help to answer the following C++ coding questions prequisite code address
ID: 3885585 • Letter: P
Question
Please help to answer the following C++ coding questions
prequisite code address: https://drive.google.com/file/d/0B71aPXjwn2AZbzlOaS05dVVabzA/view?usp=sharing
I will rate the answer, please do it seriously.
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") Compute the bitwise XOR between 10010100 and 11191010. 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.Explanation / Answer
2) The answer of bitwise XOR operator is 1 if the corresponding bits of two operands are opposite. It is denoted by^
10010100(148)
. 11101010(234)
answer = 01111110(126)
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.