Академический Документы
Профессиональный Документы
Культура Документы
May 2019
INTRODUCTION
Create a program that encrypts and decrypts a message following your own algorithm. In
your document, discuss your algorithm in detail.
ALGORITHM
1. Start
2. Read A for encryption, B for decryption and C for stop.
• If the user chose A, the user will enter a message he/she wants to encrypt.
• If the user chose B, the user will enter a message he/she wants to decrypt.
Fig. 1. Once the program ran, the user will choose an action by entering A for Encryption, B for
Decryption or C for Stop. In this sample output, A is the chosen action.
Fig. 2. The user entered a message he/she want to encrypt. The message is “Programming 2 is
harder than Programming 1, I love programming.”
Fig. 3. The message is already encrypted; the program will ask again for an action. B is the chosen
action.