Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I forgot to post 3.1. Im gonna write in text as i cannot post picture of it 3 Program execution example You will code two

I forgot to post 3.1. Im gonna write in text as i cannot post picture of it

3 Program execution example

You will code two programs: one that will encrypt a message and simulate transmission by printing to the screen; and one that will accept an the transmitted (encrypted) message, decode it and display the decrypted message. The message is an ASCII message.

3.1 Encrypt program:

The encrypt program obtains a message from the user, the encryption keys and then produces an encrypted message. For example, when the user enters the message It is nice day, the program produces a sequence of numbers which represent the message to be transmitted.

For example: if the message is This is a rainy day and the encryption key is 63 then the program would produce 6 49 -17 98 -71 -76 47 -30 50 60 -44 115 -105 -83 -27 84 12 18 74

image text in transcribed

image text in transcribed

image text in transcribed

image text in transcribed

image text in transcribed

image text in transcribed

image text in transcribed

image text in transcribed

image text in transcribed

image text in transcribed

image text in transcribed

image text in transcribed

image text in transcribed

image text in transcribed

image text in transcribed

image text in transcribed

image text in transcribed

image text in transcribed

ols Lay, Davi. Error Det assignme... (Robert)... | 106% 3.2 Decrypt program: The decrypt program obtains the encrypted message, the encryption key and then prints the decoded message For example if the input is 6 49-1798-71-76 47-30 50 60-44 115-105-83-27 84 12 18 74 Assignment 2 COMP 2401 Page2 of 12 and the key is 63 then program would produce This is a rainy day Example of execution 30889 sc oaa FS F6 FI

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

Database Design And Relational Theory Normal Forms And All That Jazz

Authors: Chris Date

1st Edition

1449328016, 978-1449328016

More Books

Students also viewed these Databases questions