arrays problem

Hello guys

First of all I don't want any one to do my assignment for me, all I want is hints and ideas and any help is very much appreciated.

I'm not sure if I can post a link 4 my assignment here so I will just copy it here
--------------------------------------------------------------------------------

Programming Problem

* Edit Nov. 23rd: SameGene is allowed to take 3 parameters (2 char arrays and 1 int for the array size)

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 my website, contains the DNA of
the two hemoglobin genes of four people. The file contains the gene DNA
information in this order:
gene1A
gene2A
gene1B
gene2B
gene1C
gene2C
gene1D
gene2D
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 returns true if they are the same gene; and returns false, otherwise.

Hand in your C++ program and output, making sure to use a staple and
to clearly indicate your name and student number on the cover sheet.

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


and the file called dna.txt can be found here
http://www.cs.uregina.ca/~butz/cs110/dna.txt

-------------------------------------------------------------------------------

so I actually did not get the idea what he wants exactly ,, I know that he wants a report file that indicates whether each person is anemic, a carrier, or normal.

I know we need 2 for loops. one to get the data and the other to make the report file

but what else do I need to do?

I don't really get the idea of the assignment in general so that I can think of how to solve it.

so any idea guys will be appreciated


Thanks in advance
help please mates
Topic archived. No new replies allowed.