Question: 1). Write a function in java, c, php or python that takes 2 inputs: - A plain text that only contains letter characters from the

1). Write a function in java, c, php or python that takes 2 inputs:

- A plain text that only contains letter characters from the English language. Can be a size of string from 0 to 10. (You are not responsible for validating that the string that it only includes letters and within the bounds of 0 to 10)

- A key that is a number from 1 to 26 (a mod operation should be used in the key: if 27 is given, the key is 1). (Not responsible for validation that it is a number)

Gives 1 output:

- Cipher text that is created by shifting the plain text to right in English Alphabet according to key.

2) Write a function in java, c, php or python that takes 2 inputs:

- A cipher text produced from section a. (Again, no validation needed)

- Same key from section a.

Gives 1 output:

Plain text that is created by shifting the cipher text to left in English Alphabet according to key

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!