Write a program

    Write a program to read a message from keyboard, and an integer number between 1 and 10 for CODING. Prompt user if the numbers is not valid.

    Modify each of the characters and digits based on the following method.

    Lab #6

    Objectives

    Practice with Top-down design, Pseudo code, and methods.

    Preparation

    Laboratory Guide.

    Study class nodes and your textbook.

    What to hand in

    Hard and soft copies of your source codes and documentation as explained in your lab-guide.

    When to hand it in

    Due Date:

    What to do

    Problem Description
    Write a program to read a message from keyboard, and an integer number between 1 and 10 for CODING. Prompt user if the numbers is not valid.
    Modify each of the characters and digits based on the following method.
    Modify each character or digit symbols by adding CODING to its Unicode and circulating around characters.
    A B C D E F G H I … P Q R S T U X Y Z
    For example if CODING is set to 5, then

    A-> F, B-> G, C-> H, …, S-> Z, T-> A, U-> B, X->C

    The same procedure applies for a-z, and 0-9.
    Then print the binary representation of the message on screen. Assume 8 bits for each symbol.
    For example, if input message is ABC, and CODING is set to 4 then the output would be:
    010001010100011001000111 that stands for binary representation of EFG

    Note 1:Do not apply coding for any other symbols except characters and digits.
    Note 2: Develop appropriate algorithm for encoding and decoding (just for the bonus part). You should not use excessive if -else statements for encoding or decoding.
    Note 3: You should use appropriate methods and loops for encoding and decoding the message. Each method should not be longer than one screen shot.

                                                                                                                                      Order Now