Question

array ,functions and loop for a c++ program

DNA analysis is an important part of medical exploration and discovery.  In this assignment^*, we examine both hemoglobin genes for

each of four people, with each gene consisting of 444 DNA bases (A,C,T,G).  These are the four bases (letters) that make up DNA.


Sickle-cell anemia is a disorder that is caused by a single mutation in the hemoglobin gene.


A sickle hemoglobin gene has a T in the 20th position.

A person is anemic if he/she has two sickle hemoglobin genes.

A person is a carrier if he/she has one sickle hemoglobin gene.

Otherwise, the person is normal.


The input file, called dna.txt and found on both Replit and UR Courses, contains the DNA of

the two hemoglobin genes of four people. The file contains the gene DNA information in this order:

geneA1

geneA2

geneB1

geneB2

geneC1

geneC2

geneD1

geneD2

where 1 and 2 denote the first and second gene, and A,B,C,D denote people.

The required information is found in the first 3552 characters of dna.txt,

that is, there is no whitespace before or between the eight genes.

Create a report, called DNAanalysis.txt, that indicates whether each person

is anemic, a carrier, or normal. For example,

Person X is anemic.

Person Y is normal.

Person Z is a carrier.


Two individuals are related if they share at least one gene.

Determine whether any of the above four individuals are related

and indicate this in DNAanalysis.txt. For example,

Person X is related to person Y.


Include a subfunction, called SameGene, that takes two character arrays and their size,

and returns true if they are the same gene; and returns false, otherwise.


Upload to UR Courses before the deadline:

1. your C++ program (not the file with an sln extension)

2. your output file


Hint: you may want to use eight arrays of type char and of size 444.


* Thanks to Dr. John Stavrinides in the Biology Department for creating this question.


"What's so beautiful about DNA is that its turned Biology into a kind of branch of Computer Science"


Richard Dawkins, former biologist at Oxford University and a fellow of the Royal Society, in The Genius of Charles Darwin.


1 0
Add a comment Improve this question Transcribed image text
Answer #1
Eyyyshsbkwudb jahsvsisugsb hahahwijwhw hahshwiu
source: Eyy
answered by: anonymous
Add a comment
Know the answer?
Add Answer to:
array ,functions and loop for a c++ program
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Sickle-cell Anemia Study Sickle-cell anemia or Sickle-cell disease, is a hereditary disorder. characterized by aryabnormality in...

    Sickle-cell Anemia Study Sickle-cell anemia or Sickle-cell disease, is a hereditary disorder. characterized by aryabnormality in the oxygen-carrying hemoglobin molecule in erythrocytes. Sickle-cell conditions have an autosomal recessive pattern of inheritance from parents. The sickle cell defect is a mutation of a single nucleotide of the hemoglobin B gene, which results in glutamic acid being substituted by a different amino acid at position 6. Hemoglobin with this mutation is referred to as Hbs, as opposed to the normal hemoglobin HbA....

  • Case 8 Hemoglobin, the Oxygen Carrier Focus concept A mutation in the gene for hemoglobin results...

    Case 8 Hemoglobin, the Oxygen Carrier Focus concept A mutation in the gene for hemoglobin results in an altered protein responsible for the disease sickle cell anemia. An understanding of the biochemistry of the disease may suggest possible treatments Prerequisite Hemoglobin structure and function concepts Background Normal adult hemoglobin is called Hemoglobin A (Hb A). Ninety-eight percent ofaduk hemoglobin is Hb A and 2% is Hb A. There are other forms of hemoglobin. For example, the deve loping fetus has...

  • Ne New Orleans Campus Review of K oni, with severe bronchial congestion 11 ar i dosis...

    Ne New Orleans Campus Review of K oni, with severe bronchial congestion 11 ar i dosis ‘ncre&d rok t depth of resent vii. renal failure: mtao n ardoss inereased rate t deptn of repihin Genetic Alteration on Chapters Student Notes DNA Pairs Autosomal Dominant- Huntington Disease Autosomal Recessive - sickle cell, cystic fibrosis X-linked Trait-hemophilia, color blindness Genome project 21 Multifactorial inheritance. 1· The.components of the DNA include a deoxyri bes arld four nitrogenous bases. molecule, 2. nnclein the DNA...

  • DNA DNA Replication: ONA Because DNA Is the ge m Tumes and heart e ine in...

    DNA DNA Replication: ONA Because DNA Is the ge m Tumes and heart e ine in process called DNA curs in the nucleus of s acest FS Parent strand Parent strand Newly replicated DNA Newly replicated DNA- SA0 Daughter DNA molecule Daughter DNA molecule Figure 8.2: Overview of DNA replication and illustration of complementary base pairing. DNA must replicate before cell division so that each new daughter cell receives an exact copy of the parent DNA. 1. Replication begins when...

  • Mendelian Genetics The gene involved in the disease Sickle Cell Anemia (SCA) is on human chromosome...

    Mendelian Genetics The gene involved in the disease Sickle Cell Anemia (SCA) is on human chromosome 11. Allele “A” is the normal form of the gene and codes for a part of the protein complex called hemoglobin. Hemoglobin is required for your blood cells to carry oxygen. Allele “a” is an abnormal form of the gene. The hemoglobin protein made from the “a” allele is defective. Red blood cells containing the defective protein are very fragile. This disease is recessive–meaning...

  • please answer these papers, they are related to each other. thank you! Student name and UNID...

    please answer these papers, they are related to each other. thank you! Student name and UNID Class 18 Mendelian Genetics Class 18 Mandalas The gene involved in the disease Sickle Cell Anemia (SCA) is on human chromosome 11. Allele "A" is the normal form of the gene and codes for a part of the protein complex called hemoglobin. Hemoglobin is required for your blood cells to carry oxygen. Allele "a is an abnormal form of the gene. The hemoglobin protein...

  • Match the following terms with the appropriate description below: a. alleles b. autosomes c. dominant allele...

    Match the following terms with the appropriate description below: a. alleles b. autosomes c. dominant allele d. genotype e. heterozygous f. homozygote g. phenotype h. recessive allele i. sex chromosomes 1. ________________ genetic make-up 2. ________________ how genetic make-up is expressed 3. ________________ chromosomes that dictate most body characteristics 4. ________________ alternative forms of the same gene 5. ___________an individual bearing two alleles that are the same for a particular trait 6. ________________ an allele that is expressed, whether in...

  • Part I— Just Bad Luck? Brrrring! Brrrring! Jane checked the caller ID on her phone. “Sam!...

    Part I— Just Bad Luck? Brrrring! Brrrring! Jane checked the caller ID on her phone. “Sam! Great!” she thought. It was always nice to get a call from her older brother. But a little twinge of worry tugged at her. It was just a couple of weeks ago that he had mentioned making an appointment with his doctor about some abdominal pain he had been having. “Hi Sam! It’s great to hear from you,” Jane answered. “Hi Jane. Well I...

  • Please read the article bellow and discuss the shift in the company's approach to genetic analysis....

    Please read the article bellow and discuss the shift in the company's approach to genetic analysis. Please also discuss what you think about personal genomic companies' approaches to research. Feel free to compare 23andMe's polices on research with another company's. Did you think the FDA was right in prohibiting 23andMe from providing health information? These are some sample talking points to get you thinking about the ethics of genetic research in the context of Big Data. You don't have to...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
Active Questions
ADVERTISEMENT