question5[1].docx - Name Muhammad usman Reg SP19-BCS-114...

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

Name: Muhammad usmanReg: SP19-BCS-114Group2:The Following Protein Sequence if collected from a Person’s Body Suffering from SickleCell Disease. Luckily the disease is diagnosed at an early stage. Hence the mutation can be reversed. Use Miss-Match Repair mechanism to Repair the infected DNA and Regenerate the Protein Sequence again. The Healthier DNA Template strand is given as well.Ans:PERCENT.CPP#include<iostream>#include"percent.h"void dna::percent(){string a,b;cout<<"ENTER PROTEIN SEQUENCE: "<<endl;getline(cin,a);for(int i=0; i<a.length(); i++){if(a[i] == 'M'){b = b + "AC";}
else if(a[i] == 'P'){b += "CCC";}else if(a[i] == 'V'){b += "ACG";}else if(a[i] == 'H'){b += "ACT";}else if(a[i] == 'D'){b += "AGT";}else if(a[i] == 'W'){b += "AT";}else if(a[i] == 'S'){b += "CG";
}else if(a[i] == 'K'){b += "GT";}else if(a[i] == 'R'){b += "AG";}else if(a[i] == 'Y'){b += "CT";}else if(a[i] == 'B'){b += "CGT";}else{b += a[i];}}cout<<b;cout<<endl;string healthy;cout<<"INPUT HEALTHY STRAND OF DNA; ";getline(cin,healthy);
for(int i=0; i<b.length(); i++){if(b[i] != healthy[i]){b[i] = healthy[i];}}cout<<"\nHEALTHY DNA = "<<b<<endl;

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture