Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribedThe 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 cipher

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Learning MySQL Get A Handle On Your Data

Authors: Seyed M M Tahaghoghi

1st Edition

0596529465, 9780596529468

More Books

Students also viewed these Databases questions