Question: In C++ Write a program in your language of choice containing your 'main' and one or more functions you may need that will: A. Read

In C++
Write a program in your language of choice containing your 'main' and one or more functions you may need that will: A. Read a sequence of words up to a maximum of 32 words from std input. The words will be separated by spaces. End of input of words is determined by the newline character. It is not specified as to how many words will be read. No prompting for input is needed. B. Create all possible compound words from the words input without any duplicates. A compound word is a combination of two different words such that every word is compounded with every other word. C. Print all the compound words created (without any duplicates) in a sorted order separated by spaces on a single line output. D. Use your main for only getting input, invoking other functions and printing output. E. Do not use Vectors, Collections, or any other data structures provided by the language platform or any oft-used third party libraries like STL, except for simple string arrays. If you do, you can expect major deductions. F. Take screenshots of your program execution with the following two samples. G. Take a third screenshot with an input of your own consisting of no less than 6 words. H. Your program will be tested with my own input. Sample Inputs Sample Outputs aab ab aba abb abbb ba bab bba bbab bbb a bb abb This is the CIS22C midterm. CIS22CThis CIS22Cis CIS22Cmidterm. CIS22Cthe ThisCIS22C Thisis Thismidterm. Thisthe isCIS22C isThis ismidterm. isthe midterm.Cis22C midterm. This midterm.is midterm.the theCIS22C theThis theis themidterm
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
