Reference no: EM13693234
Question: Write a function named caesarDecipher that accepts a key value (the Caesar shift value) as its first command-line parameter, and a string (the ciphertext) for its second parameter. Your caesarDecipher function should look like this:
caesarDecipher (shift, ciphertext):
''Returns plaintext obtained by transforming every letter in the ciphertext by a Caesar cipher by the specified shift. Non-letter characters should remain unchanged in the plaintext.''
[Your code goes here]
return [something]
Testing
To see if your code works properly, you should first try to encrypt and then decrypt a given message, and make sure it does it right.
Here are a few things for you to try to decrypt. Note that non-letters (spaces and the single quote) are copied as-is to the ciphertext.
"gduwk ydghu lv oxnh vnbzdonhu'v idwkhu" (key is 3)
"v fnirq n ybg ba zl nhgb vafhenapr ol fjvgpuvat gb trvxb" (key is 13)
Solve this question in details and provide examples to support your rationale.
Console application for a furniture company
: Write a C# console application for a furniture company. Ask the user to choose P for pine, O for oak, and M for mahogany. Show the price of a table manufactured with the chosen wood.
|
What is the ph of a solution formed by combining hcl
: Problem- What is the pH of a solution formed by combining 200.0 mL of 0.16 M HCl with 300.0 mL of 0.091 M NaOH at 25 degrees C.
|
What is the ph of a solution that is 0.30 m in acetic acid
: Problem- What is the pH of a solution that is 0.30 M in acetic acid, HC2H3O2, and 0.70 M in sodium acetate, NaC2H3O2, at 25 degrees C.
|
Determine the ph of the solution after the addition of hno3
: Problem- A 100.0mL sample of 0.10M NH3 is titrated with 0.10M HNO3. Determine the pH of the solution after the addition of 50.0mL of HNO3
|
Write a function named caesardecipher
: Write a function named caesarDecipher that accepts a key value (the Caesar shift value) as its first command-line parameter, and a string (the ciphertext) for its second parameter. Your caesarDecipher function should look like this:
|
Explain what mass of sodium benzoate should be added
: Problem- What mass of sodium benzoate should be added to 160.0mL of a 0.13M benzoic acid solution in order to obtain a buffer with a pH of 4.30
|
Write a method that prompts the user for a word and prints
: Write a method that prompts the user for a word and prints out its equivalent in Pig Latin. To translate a word to Pig Latin, take the initial letter, move it to the end of the word and add 'ay'. The new suffix (first letter with ay) should be pri..
|
What is the ksp of this salt at 25 °c
: Problem- A generic salt, AB3, has a molar mass of 315 g/mol and a solubility of 8.90 g/L at 25 °C. What is the Ksp of this salt at 25 °C
|
A buffer solution that has a ph of 5.22
: Problem- You need to produce a buffer solution that has a pH of 5.22. You already have a solution that contains 10. mmol (millimoles) of acetic acid. How many millimoles of acetate (the conjugate base of acetic acid) will you need to add to this s..
|