Great Deal! Get Instant $10 FREE in Account on First Order + 10% Cashback on Every Order Order Now

CS240 - Programming in C HOMEWORK 1 ——————————————————————————————————————————————————————————————————————————————— Write a C program to implement the following requirement: Input: The program will...

1 answer below »
CS240 - Programming in C HOMEWORK 1 ——————————————————————————————————————————————————————————————————————————————— Write a C program to implement the following requirement: Input: The program will read from the standard input any text up to 10,000 characters. Output: The program will print to the standard output the followings: First, the number of words in the text. A word is a string without whitespaces (space/tab/new line character). Then, the reversed of the input text such that all upper-case alphabet characters (A-Z) will be converted to lower-case. ——————————————————————————————————————————————————————————————————————————————— Note: If the input text is empty or there is no word in the input text, the program must print the empty string to stdout. ——————————————————————————————————————————————————————————————————————————————— ——————————————————————————————————————————————————————————————————————————————— SAMPLE INPUT 1 Hello World! 123 SAMPLE OUTPUT XXXXXXXXXX !dlrow olleh ——————————————————————————————————————————————————————————————————————————————— SAMPLE INPUT 2 SAMPLE OUTPUT 2 ——————————————————————————————————————————————————————————————————————————————— SAMPLE INPUT 3 This is the 1ST line. This is the 2ND line. SAMPLE OUTPUT XXXXXXXXXXenil dn2 eht si siht .enil ts1 eht si siht
Answered Same Day Feb 10, 2022

Solution

Neha answered on Feb 11 2022
108 Votes
SOLUTION.PDF

Answer To This Question Is Available To Download

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here