Answered step by step
Verified Expert Solution
Question
1 Approved Answer
I need c++ code for this lab assignment. From what i understand from the teacher. We are to use Structs with that contain linked lists
I need c++ code for this lab assignment.
From what i understand from the teacher.
We are to use Structs with that contain linked lists that each store one word each. Then we are to find the occurances of each letter in each word, then combine the list arrays into a third array.
Im not quite sure with the combining of lists when overloaded, if he wants the words to only contain one occurance of each letter or all the letters, so for the sake of time, i would assume having it display both ways would be fine.
2017 FallI CIS 200- Lab 5 Assign date: October 11, 2017 Due date: October 18, 2017 Program User wil1 input 2 worda: the characters in each word will be loaded into (1) an array and (2) a aorted linked list. Use a struct containing data of char variable "letter" and int variable "occurrences" in the array and that sturct plus the pointer to the next element of the list in the linked list. Lettera can be used more than once in the word but appear only once in the array and lists with the occurrences field updated. Once the arrays and lists are created (1) merge the arrays into a third array and (2) use the overloaded operator to combine the liats together into one list. Use the following main to test your code: sortedListNode list1 sortedListNode list2 sortedListNode list3 cout wordl; cout word2; listi fromstring (wordl): //word one to list cout "Letter list from word one :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