Question

In: Computer Science

English Alphabet (A..Z) are represented numerically by (0..25), e.g. A is 0, B is 1, etc....

English Alphabet (A..Z) are represented numerically by (0..25), e.g. A is 0, B is 1, etc. Use Caesar’s Cipher to encrypt the message HELLO WORLD with the Key being 4.

Solutions

Expert Solution



Char = H
   H is 7
   7 + 4 = 11
   11 mod 26 = 11
   11 => L
Char = E
   E is 4
   4 + 4 = 8
   8 mod 26 = 8
   8 => I
Char = L
   L is 11
   11 + 4 = 15
   15 mod 26 = 15
   15 => P
Char = L
   L is 11
   11 + 4 = 15
   15 mod 26 = 15
   15 => P
Char = O
   O is 14
   14 + 4 = 18
   18 mod 26 = 18
   18 => S
Char = W
   W is 22
   22 + 4 = 26
   26 mod 26 = 0
   0 => A
Char = O
   O is 14
   14 + 4 = 18
   18 mod 26 = 18
   18 => S
Char = R
   R is 17
   17 + 4 = 21
   21 mod 26 = 21
   21 => V
Char = L
   L is 11
   11 + 4 = 15
   15 mod 26 = 15
   15 => P
Char = D
   D is 3
   3 + 4 = 7
   7 mod 26 = 7
   7 => H
Answer: LIPPS ASVPH



Related Solutions

2. i. Consider a binary source alphabet where a symbol 0 is represented by 0 volt...
2. i. Consider a binary source alphabet where a symbol 0 is represented by 0 volt and a symbol 1 is represented by 1 volt. Assume these symbols are transmitted over a baseband channel having uniformly distributed noise with a probability density function:         px= {18 for-4≤x≤4 0 Assume that the single decision threshold T is in the range of 0 and l volt. If the symbols 0 and 1 are sent with probabilities p0 and 1- p0 respectively, derive...
Theory of computation: Consider the alphanumeric alphabet Σ = {a, b, . . . , z,...
Theory of computation: Consider the alphanumeric alphabet Σ = {a, b, . . . , z, A, B, . . . , Z, 0, 1, . . . , 9} and let L be the language of all regular expressions over Σ: L = {w ∈ Σ ∪ {∅,(,), ∪, ·, * }* | w is a syntactically legal regular expression over Σ} Give an unambiguous context-free grammar that generates L. The grammar should use the following precedence levels, from...
Z X1 X2 X3 X4 X5 X6 RHS 1 170 0 0 25 -20 0 15,550...
Z X1 X2 X3 X4 X5 X6 RHS 1 170 0 0 25 -20 0 15,550 0 3 0 1 1/2 -1 0 65 0 1 1 0 0 1/2 0 205 0 -5 0 0 -1 2 1 480 a) Which variables are nonbasic, which ones are basic, and what are their respective values? b) If I were minimizing the objective, which nonbasic variables are legitimate candidates to enter the basis? How about if I were maximizing? c) Suppose...
QUESTION 1 If Z is a standard normal random variable, then P(Z > 0) =   0...
QUESTION 1 If Z is a standard normal random variable, then P(Z > 0) =   0 1 0.4579 0.5 1 points    QUESTION 2 Company A claims that 20% of people in Sydney prefer its product (Brand A). Company B disputes the 20% but has no idea whether a higher or lower proportion is appropriate.  Company B randomly samples 400 people and 88 of them prefer Company A's product (Brand A). Assuming a 5% significance level, which one of the following...
1. All questions assume the alphabet Σ = { a , b }. a) Give a...
1. All questions assume the alphabet Σ = { a , b }. a) Give a regular expression representing the language of all strings containing abab as a substring. b) Give a regular expression representing the language of all strings with an even number of a's or an odd number of b's, such as abab or baabaab. c) Give a regular expression representing the language of all strings of the form ambn, where m is even and n is odd....
(1) Given the prices of zero coupon bonds Z(0, 1) = 0.9865, Z(0, 1.5) = 0.9581,...
(1) Given the prices of zero coupon bonds Z(0, 1) = 0.9865, Z(0, 1.5) = 0.9581, Z(0, 2) = 0.9292, and Z(0, 2.5) = 0.9003, determine the following forward LIBORs L0[1, 1.5], L0[1.5, 2], and L0[2, 2.5]. (2) Continued from the last problem, further assume that the floor rate (strike) is 6.5%. The principal underlying the floor is $1,000,000 and the reset frequency is 6 months. Assume that the volatility is 20%. Determine the price of floor from 1 to...
1.       ________ is a line coding technique in which a logical “1” or “0” is represented...
1.       ________ is a line coding technique in which a logical “1” or “0” is represented by a voltage transition (e.g., low-to-high or high-to-low voltages) in the middle of the clock cycle. a. NRZ b. Manchester c. Bipolar AMI d. B8ZS 10 points    QUESTION 12 1.       By using 4B/5B, you introduce 20% overhead. True False 10 points    QUESTION 13 1.       Which timing and data synchronization method depends upon the data to recover timing. a. Asynchronous b. Synchronous c....
consider the potential v(y,z) =sinky(Ce^kz + De^-kz) apply the two boundary conditions a- V(y,z=b)=0 b- V(y=a,z)=0
consider the potential v(y,z) =sinky(Ce^kz + De^-kz) apply the two boundary conditions a- V(y,z=b)=0 b- V(y=a,z)=0
Mystery(y, z: positive integer) 1 x=0 2 while z > 0 3       if z mod 2...
Mystery(y, z: positive integer) 1 x=0 2 while z > 0 3       if z mod 2 ==1 then 4                x = x + y 5       y = 2y 6       z = floor(z/2)           //floor is the rounding down operation 7 return x Simulate this algorithm for y=4 and z=7 and answer the following questions: (3 points) At the end of the first execution of the while loop, x=_____, y=______ and z=_______. (3 points) At the end of the second execution of...
Consider the language L1 over alphabet Σ = { 0, 1 } where the production rules...
Consider the language L1 over alphabet Σ = { 0, 1 } where the production rules for L1 are as follows: S → TT S → U T → 0T T → T0 T→ 1 U → 0U00 U → 1 Q → λ P → QU Transform this grammar into Chomsky Normal Form, consistent with the CNF specification in the Quick Reference, and using only Variables { S, T, U, V, W, X }. Implement that CNF grammar in...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT