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
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