(Solved) : User Provide 2 Words Characters Word Loaded 1 Array 2 Sorted Doubly Linked Contains Next P Q37190263 . . .
WRITE IN C++ PLEASE

User will provide 2 words. The characters in each word will be loaded into both: (1) an array and (2) a sorted doubly-linked (contains both next and previous pointers) list. (In total: two arrays and two doubly-linked lists are used, one array/linked list for each word). Create a struct containing char variable “letter” and int variable “occurrences”. Use this structure in the array. For the linked ist, use the same struct layout plus pointers to the next and previous elements of the list. Letters can be used more than once in the word but appear only once in the array and list. Update the occurrences field with a count of how many times that letter occurs Once the arrays and lists are created: (1) merge the two arrays into a third array and (2) use an over!。aded operator += t。combine the lists t。gether int。one list. show the contents of all arrays and lists after the words have been read in, and again after they are merged. Show transcribed image text User will provide 2 words. The characters in each word will be loaded into both: (1) an array and (2) a sorted doubly-linked (contains both next and previous pointers) list. (In total: two arrays and two doubly-linked lists are used, one array/linked list for each word). Create a struct containing char variable “letter” and int variable “occurrences”. Use this structure in the array. For the linked ist, use the same struct layout plus pointers to the next and previous elements of the list. Letters can be used more than once in the word but appear only once in the array and list. Update the occurrences field with a count of how many times that letter occurs Once the arrays and lists are created: (1) merge the two arrays into a third array and (2) use an over!。aded operator += t。combine the lists t。gether int。one list. show the contents of all arrays and lists after the words have been read in, and again after they are merged.
Expert Answer
Answer to User will provide 2 words. The characters in each word will be loaded into both: (1) an array and (2) a sorted doubly-li…
OR