Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please solve using C++ program step by step code and a screenshot for the output of the program 3. Something went horribly wrong with the

Please solve using C++ program step by step code and a screenshot for the output of the program

3. Something went horribly wrong with the encrypted document backup process at the college and all files were converted to strings containing 1s and 0s representing the binary representation of the file. Write a program to restore all the files. All the original files were in 16-bit Unicode. Input from a text file containing a long string of 1s and 0s whose length is guaranteed to be a multiple of 16. Output to the screen the original file contents. Let the user input the file name from the keyboard. Refer to the sample output below. Sample File:

0010101000000000000101100000000010010110000000001100111000000000000001000000000010010 1100000000011001110000000000000010000000000001011100000000000010110000000001010011000 0000000000010000000000111101100000000001001110000000001001011000000000111001100000000 0100101100000000001110110000000001000011000000000001101100000000000000100000000000110 0110000000001001011000000000001101100000000010100110000000000111010000000000101100000 0000000010100000000000010110000000000000101000000000000111000100000000011110110000000 0011110110000000000010011000000000000001000000000000101110000000000001011000000000100 1011000000000011101100000000011100110000000000000010000000000100111100000000011110110 0000000010101110000000000000010000000000010011100000000010100110000000001100011000000 0001111011000000000011011100000000010100110000000000100111000000000101001100000000000 100110000000000000010000000000100101100000000000101110000000001000010000000000

(The actual input file contains only one line which appears to span many lines here in the problem.)

Sample Run: Enter file name: expansion.txt This is the original file.

Good thing you recovered it!

Name the program: DeExpansionXX.cpp or DeExpansionXX.java, where XX are your initials.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions