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

Write a program that inputs a line of text into char array s[ 100 ] . Output the

ID: 643327 • Letter: W

Question

Write a program that inputs a line of text into char array s[ 100 ]. Output the line in uppercase letters and in lowercase letters.

Write a program that uses function strcmp to compare two strings input by the user. The program should state whether the first string is less than, equal to or greater than the second string.

Write a program that inputs several lines of text and uses strtok to count the total number of words. Assume that the words are separated either by spaces or newline characters.

Language: C

Use Arrays, pointers, and strings.

Explanation / Answer

Name: Copyright: Deitel C How to Program Author: StackOverflow1453 Date: 9/4/2013 11:46:58 AM Description: (Displaying Strings in Uppercase and Lowercase) Write a program that inputs a line of text into char array s[100]. Output the line in uppercase letters and in lowercase letters. */ #include #include int main(void){ int i; char s[1000]; //fgets gets a full line with spaces puts("Print a line of text to be converted to uppercase: "); /* gets(s) can be written instead to get line */ fgets(s,sizeof(s),stdin); /* to convert Uppercase */ for (i = 0; i
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