Question: Out put the words in a 2D char array in alphabetical order and remove unnecessary words such as (a,the, and, or) The code should display

Out put the words in a 2D char array in alphabetical order and remove unnecessary words such as (a,the, and, or) The code should display the first word alphabetically and the rest of the string as well if a word repeats such as DOG in the line just output dog once

Example:

Input: the fish a dog cat dog rabbit the fish and cat a rabbit or elephant

Should display

Output: CAT the fish a dog cat dog rabbit CAT the fish and cat DOG the fish a dog cat dog rabbit ELEPHANT a rabbit or elephant FISH the fish a dog cat dog rabbit FISH the fish and cat RABBIT the fish a dog cat dog rabbit RABBIT a rabbit or elephant WRITE IN C PROGRAM

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!