Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

part 1 is the most important and it is written in assembly language please Hint: Instead of a 26-part if/elseif/lelse statement, a much better way

image text in transcribedimage text in transcribedpart 1 is the most important and it is written in assembly language please

Hint: Instead of a 26-part if/elseif/lelse statement, a much better way is to subtract the value of 'A'from whichever letter you have in the key to get the shift value. The complete example, along with its ciphertext is given below: OPENSESAMEOPENSESAMEOPENS Key: Plaintext MEETUSATTWELVEOCLOCKSHARP Ciphertext: ATIGMWSTFASAZRGGDO0OGWEEH After collecting the key and the plaintext from the user, your program will output the ciphertext to the console Note: You can limit the length of these strings to 100 characters in your program, and you do not have to handle the case when the user types more than 100 characters. You can also limit the string to only uppercase letters (as shown in the examples), to mlake the logic simpler. If there are no spaces, that also rneans that you can use scanf ( "%s" , str) to enter the string(s) Sample Output Enter the message: MEETUSATTWELVEOCLOCKSHARP Enter the key: OPENSESAME Encrypted message: ATIGMWSTFASAZRGGDOOOGWEEH decrypt.asm This program will do the opposite of encrypt.asm. It will apply the Vigenre cipher in reverse. It wil subtract the offset from the ciphertext characters, producing the plaintext. Sample Output Enter the encrypted message: ATIGMWSTFASAZRGGDO00GWEEH Enter the key: OPENSESAME Decrypted message: MEETUSATTWELVEOCLOCKSHARP Note: For the purposes of this assignment, you can limit the strings to 50 characters (51, including the null byte) Part 2 (4 marks) For this part of the assignment, you can create any assembly language program that you like. Suggested ideas include (but are not limited to) A number guessing game A question/answer program that collects statistics on yeso answers A program that sorts a list of numbers, entered by the user, and outputs them Hint: Instead of a 26-part if/elseif/lelse statement, a much better way is to subtract the value of 'A'from whichever letter you have in the key to get the shift value. The complete example, along with its ciphertext is given below: OPENSESAMEOPENSESAMEOPENS Key: Plaintext MEETUSATTWELVEOCLOCKSHARP Ciphertext: ATIGMWSTFASAZRGGDO0OGWEEH After collecting the key and the plaintext from the user, your program will output the ciphertext to the console Note: You can limit the length of these strings to 100 characters in your program, and you do not have to handle the case when the user types more than 100 characters. You can also limit the string to only uppercase letters (as shown in the examples), to mlake the logic simpler. If there are no spaces, that also rneans that you can use scanf ( "%s" , str) to enter the string(s) Sample Output Enter the message: MEETUSATTWELVEOCLOCKSHARP Enter the key: OPENSESAME Encrypted message: ATIGMWSTFASAZRGGDOOOGWEEH decrypt.asm This program will do the opposite of encrypt.asm. It will apply the Vigenre cipher in reverse. It wil subtract the offset from the ciphertext characters, producing the plaintext. Sample Output Enter the encrypted message: ATIGMWSTFASAZRGGDO00GWEEH Enter the key: OPENSESAME Decrypted message: MEETUSATTWELVEOCLOCKSHARP Note: For the purposes of this assignment, you can limit the strings to 50 characters (51, including the null byte) Part 2 (4 marks) For this part of the assignment, you can create any assembly language program that you like. Suggested ideas include (but are not limited to) A number guessing game A question/answer program that collects statistics on yeso answers A program that sorts a list of numbers, entered by the user, and outputs them

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

Pro SQL Server Wait Statistics

Authors: Enrico Van De Laar

1st Edition

1484211391, 9781484211397

More Books

Students also viewed these Databases questions