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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started