This is another problem that I'm having that goes along with a previous question that i asked.
The basic program is that a person puts in two DNA strings that consist of only A,T,C,or G.
DNA strings work to where A can only match with T, and G can only match with C.
So the program needs to look at each individual character in the string and make sure that the corresponding character in the other string matches...
so if:
DNA1 = ATGCACTGACC
DNA2 = TACGTGACTAT
With that data everything corresponds correctly except the last two characters. My desire is to have my program look at DNA1 and make sure that DNA2 matches correctly, and if it doesn't i want it to correct it so that it does. So the program would run and then the output would be:
DNA1 = ATGCACTGACC
DNA2 = TACGTGACTGG
I've tried using for loops along with nested if statements but have been unable to get anything to work correctly...
if anyone has any ideas about how i might be able to achieve this, i would be very grateful for your input. Thanks
Dave