Create a c visual studio console application with the name


1. Create a C++ visual studio console application with the name Project2. (As usual, to make the grader happy, it is critical that your project as well as your zip file contain your name and the exercise or project number.) 000 001 002 003 004 005 006 007 000 0 1 2 3 4 5 6 7 001 8 9 = - 002 + A B C D E F G 003 H I . ) 004 - J K L M N O P 005 Q R $ * 006 space / S T U V W X 007 Y Z , ( 000 001 002 003 004 005 006 007 2. Implement the above BCD character encoding for the IBM 704 using the following table

(from https://en.wikipedia.org/wiki/BCD_(character_encoding):

a. Include methods for encoding and decoding individual BCD characters,

b. Include methods for converting to and from BCD and ascii characters.

c. Add methods for storing and retrieving 5 BCD characters in each unsigned int in that array. The first character should be in bits 0-5, the second, in bits 6-11, the third in bits 12-17, the fourth, in bits 18-23, and the 6th in bits 24-29. Bits 30 and 31 are unused and should be set to zero. Your Bcd class should allow allocation of a dynamic array of unsigned integers.

d. Add methods to pack and unpack entire strings of ascii characters into array of integers of length n with 5 BCD characters per 32bit integer.

e. Add a method that accepts a file name containing ascii text, reads it in, converts it to an BCD integer array and writes that array out as a binary file. f. Write a second method that accepts the name of that binary file, reads it in, converts it back to an ascii string, and writes it out as a .txt file. 3. Go to gutenburb.org and obtain a .txt file of Jane Austen's pride and prejudice. Write methods, called from main to read in this .txt file, compress it using your BCD class, write it out, read it back in, un-compress it, and write out the uncompressed version.

Solution Preview :

Prepared by a verified Expert
C/C++ Programming: Create a c visual studio console application with the name
Reference No:- TGS01724332

Now Priced at $40 (50% Discount)

Recommended (90%)

Rated (4.3/5)