Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

The text above is the sample.txt file(python programming) Jacob hated finishing things almost as much as he loved starting them. As a result, he had

image text in transcribed

image text in transcribedThe text above is the sample.txt file(python programming)

Jacob hated finishing things almost as much as he loved starting them. As a result, he had gotten into a million hobbies and activities, but he never stuck with any of them long enough to get any good.He begged his mother for months for a guitar so that he could play Black Eyed Peas songs to Angie, a girl he liked, but after he finally got one for Christmas, he found out that guitars dont play themselves. He took a few lessons, but strumming the strings hurt his fingers and he didnt like holding the pick, so now the five-hundred dollar guitar lives under his bed.After reading an ad in the back of one of his comic books, Jacob decided that he wanted a Wonder-Sweeper 5000 metal detector, so that he could find buried pirate treasure. So he mowed lawns all summer and didnt spend his money on ice-cream like his younger brother, Alex. He saved it all in a shoe box in his closet. Then he shoveled driveways all winter, and he didnt spend his money on candy and chips like his classmates. By the time spring came he had saved $200, and he purchased the Wonder-Sweeper 5000 metal detector. He beeped it around the park for a while, be he soon found out that no pirates had ever set sail in his neighborhood, and if they had they didnt leave any treasure. Even though he found a key ring, forty-seven cents, and all the bottle caps he could throw, he buried the metal detector in his closest.

This is one of the best exercises I have created to practice linked list along with sorting. The goal is to maintain a sorted linked list (Doubly linked list). In order to populate the linked list, we will read a text file. which is this. sampletext.txt D The data in every node in the list will be just a word from the text. 1. Create a double linked list. 2. Read every single word from the text file. 3. insert or append the word in the doubly linked list in the appropriate place. 4. Repeat the steps 2, 3, 4 until you have read all the words from the text file and populated the linked list. Note: a. ignore any punctuations. b. do not insert/append duplicate words. c. change the word cases all lower or upper. As Jacob hated finishing things almost as much as he loved starting them. a result, he had gotten into a million hobbies and activities, but he never stuck with any of them long enough to get any good. He begged his mother for months for a guitar so that he could play Black Eyed Peas songs to Angie, a girl he liked, but after he finally got one for Christmas, he found out that guitars don't play themselves. He took a few lessons, but strumming the strings hurt his fingers and he didn't like holding the pick, so now the five-hundred dollar guitar lives under his bed. After reading an ad in the back of one of his comic books, Jacob decided that he wanted a Wonder-Sweeper 5000 metal detector, so that he could find buried pirate treasure. So he mowed lawns all summer and didn't spend his money on ice-cream like his younger brother, Alex. He saved it all in a shoe box in his closet. Then he shoveled driveways all winter, and he didn't spend his money on candy and chips like his classmates. By the time spring came he had saved $200, and he purchased the Wonder-Sweeper 5000 metal detector. He beeped it around the park for a while, be he soon found out that no pirates had ever set sail in his neighborhood, and if they had they didn't leave any treasure. Even though he found a key ring, forty-seven cents, and all the bottle caps he could throw, he buried the metal detector in his closest. This is one of the best exercises I have created to practice linked list along with sorting. The goal is to maintain a sorted linked list (Doubly linked list). In order to populate the linked list, we will read a text file. which is this. sampletext.txt D The data in every node in the list will be just a word from the text. 1. Create a double linked list. 2. Read every single word from the text file. 3. insert or append the word in the doubly linked list in the appropriate place. 4. Repeat the steps 2, 3, 4 until you have read all the words from the text file and populated the linked list. Note: a. ignore any punctuations. b. do not insert/append duplicate words. c. change the word cases all lower or upper. As Jacob hated finishing things almost as much as he loved starting them. a result, he had gotten into a million hobbies and activities, but he never stuck with any of them long enough to get any good. He begged his mother for months for a guitar so that he could play Black Eyed Peas songs to Angie, a girl he liked, but after he finally got one for Christmas, he found out that guitars don't play themselves. He took a few lessons, but strumming the strings hurt his fingers and he didn't like holding the pick, so now the five-hundred dollar guitar lives under his bed. After reading an ad in the back of one of his comic books, Jacob decided that he wanted a Wonder-Sweeper 5000 metal detector, so that he could find buried pirate treasure. So he mowed lawns all summer and didn't spend his money on ice-cream like his younger brother, Alex. He saved it all in a shoe box in his closet. Then he shoveled driveways all winter, and he didn't spend his money on candy and chips like his classmates. By the time spring came he had saved $200, and he purchased the Wonder-Sweeper 5000 metal detector. He beeped it around the park for a while, be he soon found out that no pirates had ever set sail in his neighborhood, and if they had they didn't leave any treasure. Even though he found a key ring, forty-seven cents, and all the bottle caps he could throw, he buried the metal detector in his closest

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Databases Organizing Information Digital And Information Literacy

Authors: Greg Roza

1st Edition

1448805929, 978-1448805921

Students also viewed these Databases questions