Question: 5. Write a C program that takes as input two lines of text, each ended by the newline character n'. It then outputs YES if

 5. Write a C program that takes as input two lines

5. Write a C program that takes as input two lines of text, each ended by the newline character n'. It then outputs "YES" if they contain the same number of occurrences as each other of each of the 26 letters in the alphabet, and "NO" otherwise. E.g., if the input is "William Shakespeare!n" and I'11 make a wise phrase. In", the output is "YES". The program should ignore input charac- ters that are not letters and should not distinguish between lower and upper case. Use the getchar- function from and the isalpha- and toupper-functions from ( marks)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!