Lab Program 3 - Pointers, Strings, & Integers

computer science

Description

1. Inputing the string into the linked list

2. Figuring out a way to add the numbers in the specific order the assignment asks for. 

If you look at the text file you will see that its made up of both integers and strings, 

2  <-- cases

4 <---number of integers in the file

6 <-- First Number 

4 <--- Second Number

5 < --- Third Number

6 <--- Fourth number 

For the numbers I am suppose to add the Odd numbered numbers in the link list together, meaning that in this case I would add 6 (because its 1st in the list) and 5 (because its the 3rd) together. I am having trouble understanding how to do this with linked list, as I am not allowed to use arrays

4 <--- Number of strings

"blue"

"dog"

"red"

"cat" 

These are the strings, and I am suppose to put them together with the group they correspond. so red and blue are both colors so they would be printed out together. 

and dog and cat are grouped together since they are animals. I'm suppose to do a concatenation, but I am unsure of how to do this.


Related Questions in computer science category


Disclaimer
The ready solutions purchased from Library are already used solutions. Please do not submit them directly as it may lead to plagiarism. Once paid, the solution file download link will be sent to your provided email. Please either use them for learning purpose or re-write them in your own language. In case if you haven't get the email, do let us know via chat support.