Answered step by step
Verified Expert Solution
Question
1 Approved Answer
In Java ... Only question 6B The affine is a type of monoalphabetic substitution cipher, where each letter in an alphabet is mapped to its
In Java ... Only question 6B
The affine is a type of monoalphabetic substitution cipher, where each letter in an alphabet is mapped to its numeric equivalent, encrypted using a simple mathematical function, and converted back to a letter.
6. In this problem you are to get your hands dirty doing some program- ming. Write some code that creates a new alphabet (A,C, G,T). For example, this alphabet could correspond to the four nucleotides ade nine, cytosine, guanine, and thymine, which are the basic building blocks of DNA and RNA codes. Associate the letters A, C,G,T with the numbers 0, 1, 2, 3, respectively. (a) Using the shift cipher with a shift of 1, encrypt the following sequence of nucleotides which is taken from the beginning of the thirteenth human chromosome: GAATTCGCGGCCGCAATTAACCCTCACTAAAGGGATCT CTAGAACT. (b) Write a program that performs affine ciphers on the nucleotide alphabet. What restrictions are there on the affine cipher? 6. In this problem you are to get your hands dirty doing some program- ming. Write some code that creates a new alphabet (A,C, G,T). For example, this alphabet could correspond to the four nucleotides ade nine, cytosine, guanine, and thymine, which are the basic building blocks of DNA and RNA codes. Associate the letters A, C,G,T with the numbers 0, 1, 2, 3, respectively. (a) Using the shift cipher with a shift of 1, encrypt the following sequence of nucleotides which is taken from the beginning of the thirteenth human chromosome: GAATTCGCGGCCGCAATTAACCCTCACTAAAGGGATCT CTAGAACT. (b) Write a program that performs affine ciphers on the nucleotide alphabet. What restrictions are there on the affine cipherStep 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