Answered step by step
Verified Expert Solution
Question
1 Approved Answer
in c please 2. Name this program missing.c-This program reads in a series of words. All words consist of only lower- case letters ('a' through
in c please
2. Name this program missing.c-This program reads in a series of words. All words consist of only lower- case letters ('a' through z). None of the words entered will be longer than 50 letters. The program reads until ctrl-d (end-of file), and then prints out all the lower-case letters (in ascending order) that were missing in the input or a statement indicating the input has all the letters. Two executions of the pro are shown below Enter your input the quick brown fox jumps over the lazy old dog Your input contains all the letters Enter your input: alabama crimson tide Missing letters: fgh k Hints: e Use an array of 26 elements to store the number of times you have seen the characters 'a' through 'z'. a' is actually an integer of value 97 (its ASCII value). If you subtract 'a' (or 97) from a lower-case letter, you will get a number in the range of 0 to 25. The input could contain multiple lines. To test this program, it is a good idea to use vim to create a file datafile for example) to contain all the lines. Then test the program with input redirection as below ./a.out Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started