(5/5)

Hire Me
(5/5)

Hire Me
(5/5)

Hire Me
(5/5)

Hire Me

# DNA string d is string of consisting of characters from the set {A, T, C, G} where |d| > 0. |d| is the length of d.

INSTRUCTIONS TO CANDIDATES

DNA String compression example

Definition:

A DNA string d is string of consisting of characters from the set {A, T, C, G} where |d| > 0. |d| is the length of d.

Assume the following binary encoding: A = 00, T= 01, C = 10, G = 11

We can fit 4 characters from a DNA string into an unsigned char.If (|d| % 4 != 0), then pad with trailing zeros.  Suppose d is ATTCGG.

Compress ATTCGG using bitwise operators in C++. First print |d|.

DNA String compression example

Definition:

A DNA string d is string of consisting of characters from the set {A, T, C, G} where |d| > 0.   |d| is the length of d.

Assume the following binary encoding:

A = 00, T= 01, C = 10, G = 11

d = ATTCGG

Initialize an 8-bit unsigned char to store compressed bits.

DNA String compression example

Definition:

A DNA string d is string of consisting of characters from the set {A, T, C, G} where |d| > 0.  |d| is the length of d.

Assume the following binary encoding:

A = 00, T= 01, C = 10, G = 11

d = ATTCGG

Read the first character of d and use bitwise operators to place its binary encoding in the proper location.

DNA String compression example

Definition: A DNA string d is string of consisting of characters from the set {A, T, C, G} where |d| > 0.  |d| is the length of d.

Assume the following binary encoding:

A = 00, T= 01, C = 10, G = 11

d = ATTCGG

Read the next character of d and use bitwise operators to place its binary encoding in the proper location.

DNA String compression example

Definition:

A DNA string d is string of consisting of characters from the set {A, T, C, G} where |d| > 0 |d| is the length of d.

Assume the following binary encoding:

A = 00, T= 01, C = 10, G = 11

d = ATTCGG

Read the next character of d and use bitwise operators to place its binary encoding in the proper location.

DNA String compression example

Definition:

A DNA string d is string of consisting of characters from the set {A, T, C, G} where |d| > 0. |d| is the length of d.

Assme the following binary encoding:

A = 00, T= 01, C = 10, G = 11

d = ATTCGG

Read the next character of d and use bitwise operators to place its binary encoding in the proper location.

DNA String compression example

Definition: A DNA string d is string of consisting of characters from the set {A, T, C, G} where |d| > 0.

|d| is the length of d.

Assume the following binary encoding:

A = 00, T= 01, C = 10, G = 11

d = ATTCGG

Print the base-10 integer value of the 8-bit unsigned char.

DNA String compression example

Definition:  A DNA string d is string of consisting of characters from the set {A, T, C, G} where |d| > 0. |d| is the length of d.

Assume the following binary encoding:

A = 00, T= 01, C = 10, G = 11

d = ATTCGG

Reinitialize the 8-bit unsigned char.

DNA String compression example

Definition:

A DNA string d is string of consisting of characters from the set {A, T, C, G} where |d| > 0 |d| is the length of d.

Assume the following binary encoding:

A = 00, T= 01, C = 10, G = 11

d = ATTCGG

Read the next character of d and use bitwise operators to place its binary encoding in the proper location.

DNA String compression example

Definition:

A DNA string d is string of consisting of characters from the set {A, T, C, G} where |d| > 0.   |d| is the length of d.

Assume the following binary encoding:

A = 00, T= 01, C = 10, G = 11

d = ATTCGG

Read the next character of d and use bitwise operators to place its binary encoding in the proper location.

DNA String compression example

Definition:  A DNA string d is string of consisting of characters from the set {A, T, C, G} where |d| > 0.     |d| is the length of d.

Assume the following binary encoding:

A = 00, T= 01, C = 10, G = 11

d = ATTCGG

Once we reach the end of d, add trailing zeros to fill the 8-bit

unsigned char.

DNA String compression example

Definition:A DNA string d is string of consisting of characters from the set {A, T, C, G} where |d| > 0.    |d| is the length of d.

Assume the following binary encoding:

A = 00, T= 01, C = 10, G = 11

d = ATTCGG

Print the base-10 integer value of the 8-bit unsigned char

## Related Questions

##### . The fundamental operations of create, read, update, and delete (CRUD) in either Python or Java

CS 340 Milestone One Guidelines and Rubric  Overview: For this assignment, you will implement the fundamental operations of create, read, update,

##### . Develop a program to emulate a purchase transaction at a retail store. This  program will have two classes, a LineItem class and a Transaction class

Retail Transaction Programming Project  Project Requirements:  Develop a program to emulate a purchase transaction at a retail store. This

##### . The following program contains five errors. Identify the errors and fix them

7COM1028   Secure Systems Programming   Referral Coursework: Secure

##### . Accepts the following from a user: Item Name Item Quantity Item Price Allows the user to create a file to store the sales receipt contents

Create a GUI program that:Accepts the following from a user:Item NameItem QuantityItem PriceAllows the user to create a file to store the sales receip

##### . The final project will encompass developing a web service using a software stack and implementing an industry-standard interface. Regardless of whether you choose to pursue application development goals as a pure developer or as a software engineer

CS 340 Final Project Guidelines and Rubric  Overview The final project will encompass developing a web service using a software stack and impleme