All life on this planet is derived from deoxyribonucleic acid (DNA). DNA is made up from four differen nucleotide bases: Adenine (A) Thymine (T) Guanine (G) Cytocine (C) In an elegant cellular dance called transcription, your cells create molecules of messenger RNA (ribonucleic acid) that reflect the sequence of nucleotides in your DNA. The purpose of RNA is to create proteins that will perform many functions that keep our bodies going every minute of our lives.

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question

Need C++ solution

Background
All life on this planet is derived from deoxyribonucleic acid (DNA). DNA is made up from four different
nucleotide bases:
Adenine (A)
Thymine (T)
Guanine (G)
• Cytocine (C)
In an elegant cellular dance called transcription, your cells create molecules of messenger RNA
(ribonucleic acid) that reflect the sequence of nucleotides in your DNA. The purpose of RNA is to
create proteins that will perform many functions that keep our bodies going every minute of our lives.
Task
Create a program that will do the following:
1. Prompt the user for a sequence of DNA (capital As, Ts, Cs, Gs) as well as cellular "garbage"
(characters other than A, T, C, G).
Note that each character is an element in an array.
The DNA sequence is to be stored in an array of 10 characters in length
2. Transcribe the DNA to create the RNA. Transcription follows the following pattern:
A transcribes to U
C transcribes to G
G transcribes to C
I transcribes to A
Any other character in the DNA should NOT be transcribed
The RNA sequence generated should be stored in its own array of 10 characters in
length
3. Output both the DNA and the RNA that would be produced. Make sure you properly identify
each sequence.
Test Cases
You should use the following to check that your program works correctly.
1. A
с GT т сA АТ
2. T
СА
G C A T G G C
3. G A T
T
А сА G сс
4. G C T A # 2
3
4
А
Transcribed Image Text:Background All life on this planet is derived from deoxyribonucleic acid (DNA). DNA is made up from four different nucleotide bases: Adenine (A) Thymine (T) Guanine (G) • Cytocine (C) In an elegant cellular dance called transcription, your cells create molecules of messenger RNA (ribonucleic acid) that reflect the sequence of nucleotides in your DNA. The purpose of RNA is to create proteins that will perform many functions that keep our bodies going every minute of our lives. Task Create a program that will do the following: 1. Prompt the user for a sequence of DNA (capital As, Ts, Cs, Gs) as well as cellular "garbage" (characters other than A, T, C, G). Note that each character is an element in an array. The DNA sequence is to be stored in an array of 10 characters in length 2. Transcribe the DNA to create the RNA. Transcription follows the following pattern: A transcribes to U C transcribes to G G transcribes to C I transcribes to A Any other character in the DNA should NOT be transcribed The RNA sequence generated should be stored in its own array of 10 characters in length 3. Output both the DNA and the RNA that would be produced. Make sure you properly identify each sequence. Test Cases You should use the following to check that your program works correctly. 1. A с GT т сA АТ 2. T СА G C A T G G C 3. G A T T А сА G сс 4. G C T A # 2 3 4 А
Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
ADT and Class
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education