Question: Assume s is a string. Write a program that separates a long string ( at least length of 1 6 ) that contains both numbers
Assume s is a string.
Write a program that separates a long string at least length of that contains both numbers and letters upper and lower case into two substrings of numbers and letters.
And then convert theeven numbers in the 'number substring' and uppercase letter in the 'letter string' into ASCII Code Decimal Values.
Example Scenario:String aAwwsktraYmnssfsqD
Separate them number string and aAwwsktraYmnssfsqD letter string Convert the even numbers in the number string to ASCII Code Decimal Values
Even Numbers
ASCII CODE
Convert the uppercase letter in letter string to ASCII Code Decimal values.
A Y D Uppercase Letters
ASCII CODE Decimal Values
You are required to create a program that showcases the required output for the following question: Many newspapers publish a cryptogram each day, for instance:
VZ FRYSVFU VZCNGVRAG NAQ N YVGGYR VAFRPHER V ZNXR ZVFGNXRF V NZ BHG BS PBAGEBY
NAQNG GVZRF UNEQ GB UNAQYR OHG VS LBH PNAG UNAQYR ZR NG ZL JBEFG GURA LBH FHER NF
URYYQBAG QRFREIR ZR NG ZL ORFG ZNEVYLA ZBAEBR
The deciphered cryptogram is usually a quote from a famous author or celebrity.
To get the original quote, you should replace each character in the ciphered quote using a shift keyvalue s condition.
Example : If ciphered quote is AB and s is then original quote is ZA
Example : If ciphered quote is AB and s is then original quote is YZ
Similarly decrypting the provided cryptogram using a 'certain' shift key value s gives original quote.
Find the shift kev s the gives the original quote.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
