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

Write a C program that will tale user input a AzZbBS and the output will be aazz

ID: 2079983 • Letter: W

Question

Write a C program that will tale user input a AzZbBS and the output will be aazzbb (User input: aAzZbB$ output: aazzbb) Write a C program that will give you following output Homework will not be accepted through email or hardcopy a. Inside the Clanguage directory/folder create a folder name homework2 b. Inside homewor k2 create two folders section1 and section2 c. Inside section1 folder you should have your hw2section1 .c and a.out file d. Inside section2 folder you should have your hw2section2 .c and a.out file

Explanation / Answer

Section 1:

#include<stdio.h>
#include<conio.h>
#include<string.h>
void main()
{
clrscr();
char string[100],output[100];
int i=0,j=0;
printf("Enter string: ");
scanf("%s",&string);
strlwr(string);
for(i=0,j=0;string[i]!='';++i)
{
if (string[i]>='a'&& string[i]<='z')
{
output[j]=string[i];
j++;
}
}
printf(" %s",output);
getch();
}

Section 2:

#include<stdio.h>
#include<conio.h>
void main()
{
clrscr();
int i=0,j=0;
for(i=0;i<4;i++)
{
for(j=1;j<i+3;j++)
{
printf("%d",j);
}
printf(" ");
}
getch();
}

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