Tweet Manager is a simple application that allow the user to do the simple Twitter functionality. This application was completed in C.
The application has the following functionality:
- Create a new tweet
- Display tweets
- Search a tweet (by keyword)
- Find how many words are “stop words” (stop words are explained in a later section)
- Delete the nth tweet
- Save tweets to a file
- Load tweets from a file
- Sort the given linked list on userid.
- Exit
Date of Last Revision: 2022/04/03.
git clone https://github.com/myronladyjenko/Tweet-Manager.git
make
./ladyjenkoMyronA3
make clean
Tweet Manager has a full range of functionality. The user is able to any of the proposed functionality. Users are able to create tweets, display tweets, search tweets based on a keyword or mention, save and load tweets from a local file, and calculate the number of stop words are present across all of the tweets.
Create new tweet
This function prompts the user for the username and the tweet. Then it automatically creates a unique id for every tweet.Display tweets
This function displays all the stored tweets.Search a tweet (by keyword)
This function takes prompts the user to enter a keyword and then searches for this keyword in all of the tweets.Find how many words are “stop words” (stop words are explained in a later section)
This function takes counts how many stop words all across all the stored tweets.Delete the nth tweet
This function deletes nth tweet from all the stored tweets and prints the id of it.Save tweets to a file
This function saves all the stored tweets to the .csv file.Load tweets from a file
This function load tweets from the .csv file into the memory (linked list form).Sort the given linked list on userid.
This function sorts all the tweets by the user id.In addition, since this is a menu-driven program, there are several input streams for the tweets. The first input stream is from the command line itself (Menu Option 1). Alternatively, the user can use the seventh option to load a CSV file of tweets into the program. A sample CSV file has been provided for you to test your programs with. Both of these inputs will feed into the same linked list structure, as defined above.
If the user decides to exit the program with saving the tweets (option 6), then all the information will be lost.
The program covers the full scope of the assignment listed in the instructions and has no limitations.
- Added an error checking for a wrong input for "Delete the nth tweet" function. Plus, was given an option to exit the function if the user doesn't want to delete any nodes.
- Check for the uniqueness of the id when loading from a .csv file.
- Error checking for the wrong file format when loading tweets from a .csv file.