question2.docx - Name Muhammad Usman Reg SP19-BCS-114...

This preview shows page 1 - 7 out of 7 pages.

Name: Muhammad UsmanReg: SP19-BCS-114 Group2:Write a program in DEV C++ to separate the two Kissing hair pinsfrom the given DNA sample. Where the odd index nucleotides belong to one strand and the even nucleotides belongs to the other strand of the Helix. NOTE: You have to check all rules for kissing Hair pins. (MAKE sure to implement checks for case sensitivity in the input DNA sample.)
b = len1;}else{a = len1;b = len2;}cout<<"Enter The WindowSize: ";cin>>window;if (window % 2 == 0 || window > a){cout << "Invalid Window Size";return 0;}cout<<"Enter Threshold Value: ";cin>>threshold;if (threshold > window){cout<<"Threshold Value Must Be Lesser Than Windowsize"<<endl;return 0;}len = (len1>len2)? len1:len2;char array1[a] , array2[b];char array3[window][window];cout << "Enter SMALLER len DNA Sequence: " ;
for (int i = 0 ; i < a ; i++)cin >> array1[i];for (int i = 0 ; i < a ; i++){if (( array1[i] != 'A' && array1[i] != 'G' && array1[i] != 'T' && array1[i] != 'C') ) {cout << "Invalid Input" ;return 0;}}cout << "Enter LARGER DNA Sequence: " ;

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture