Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

I want AccgTCgatgccgca. With T and C changed to capital. define GNU SOURCE # inc

ID: 3744629 • Letter: I

Question

I want AccgTCgatgccgca. With T and C changed to capital.
define GNU SOURCE # inci # include # include # include void stage 2(int number_ of int main) stdio.h> lines, ohar "tragmentst1)a stage 2(strlen (lol) -1, 1o1) : return 0: void stage 2 (int number_of lines, char tragmenta!)) printf("stage-2 char super [20000 Ascg&saccaca" int i: char "p: super [0]-toupper (super to]): printf (is1n", super) for (i 2: inumber of lines: i+) for (1-2; í -number of lines; i++) { if (strstr (super, fragments [1)) int pointer_length, supezstr length, change_to_up: P strstr (super, fragmentsti) pointer length strlen (P) superstr length strlen (super) ; change to up supezstr length pointer_length: super [change to up] toupper (super [change to up]): printf ("isd", super, strlen (supez)) : printf ("ARI") ;

Explanation / Answer

#include<stdio.h>
#include<string.h>
#include<stdlib.h>
#include<ctype.h>
void stage_2(int number_of_lines, char *fragments[]);
int main()
{
char *lol[]={"lolhahah","accgtcgatg","gcctag","gtacctacta","tcgatgccgca","cgatgcc","atgagaccgtc"};
stage_2(strlen(*lol)-1,lol);
return 0;
}
void stage_2(int number_of_lines, char *fragments[])
{
printf("stage-2------------------------------------------ ");
char super[20000]="accgtcgatgccgca";
int i;
char *p;
super[0]=toupper(super[0]);
printf("%s ",super);
for(i=2;i<number_of_lines;i++)
{
if(strstr(super,fragments[i])){
int pointer_length,superstr_length,change_to_up;
p=strstr(super,fragments[i]);
pointer_length=strlen(p);
superstr_length=strlen(super);
change_to_up=superstr_length-pointer_length;
super[change_to_up]=toupper(super[change_to_up]);
printf("%s----%d ",super,strlen(super));
printf("lol");
}
}
}

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote