In this assignment, you will create a Lewis University version of Twitter called Tlutter. Tlutter users post their thoughts as Tleets. Associated with each Tleet is the username of the person who posted it, the date and time it was posted, the text of the

computer science

Description

In this assignment, you will create a Lewis University version of Twitter called Tlutter. Tlutter users post their thoughts as Tleets. Associated with each Tleet is the username of the person who posted it, the date and time it was posted, the text of the tleet, and optional hashtags. Your program will give Tlutter visitors the option to view Tleets that meet a variety of criteria as well as post their own Tleets.

Evidently, people have already used Tlutter. Previously posted Tleets are stored in a tab-delimited text file. Each line of the file specifies the username, date, time, content, and hashtags of the tweet, all separated by tabs. Here, for example, is what the data file might look like.

klumprageous  20190910  7:50 I am so tired I could scream.         tired lethargy     coffee

klumprageous  20190912  16:40     I am buzzing from all the coffee. Got the shakes.    highbloodpressure  jitters

howardtheduck 20190910  13:30     Ran over a pothole on my way from Cheeseland today.  illinois  fixyourroads

howardtheduck 20190912  14:10     The cafeteria stopped serving coffee early today.    tired     unfair    withdrawal

perrynotkaty  20190911  7:30 Klump better not ask me to do anything else on the server.         notaservant        uggh      dudeneedshair

perrynotkaty  20190911  11:40     Klump just asked me to do something else on the server.       tyrant    tired     dudeneedshair

perrynotkaty  20190912  7:15 Klump is so ugly, his mama threw him from a train.        truth     dudeneedshair

 

Here's an example of how your program might operate.

**********************************************************

Welcome to Tlutter - LU's Opinion and Fake News Authority!

**********************************************************

Enter name of Tleet file: tleets.txt

Here are your options:

1. See a list of all tleets

2. See a list of all tleets from a particular day or days

3. See a list of tleets by a particular user

4. See list of all tleets with a particular hashtag

5. Tleet to your peeps

6. Exit

Enter the number of your choice: 1

Here is a list of all tleets:

At 7:50 on 20190910, klumprageous tleeted ...

I am so tired I could scream. #tired lethargy #coffee

 

At 16:40 on 20190912, klumprageous tleeted ...

I am buzzing from all the coffee. Got the shakes. #highbloodpressure #jitters

 

At 13:30 on 20190910, howardtheduck tleeted ...

Ran over a pothole on my way from Cheeseland today. #illinois #fixyourroads

 

At 14:10 on 20190912, howardtheduck tleeted ...

The cafeteria stopped serving coffee early today. #tired #unfair #withdrawal

 

At 7:30 on 20190911, perrynotkaty tleeted ...

Klump better not ask me to do anything else on the server. #notaservant #uggh #dudeneedshair

 

At 11:40 on 20190911, perrynotkaty tleeted ...

Klump just asked me to do something else on the server. #tyrant #tired #dudeneedshair

 

At 7:15 on 20190912, perrynotkaty tleeted ...

Klump is so ugly, his mama threw him from a train. #truth #dudeneedshair

 

Here are your options:

1. See a list of all tleets

2. See a list of all tleets from a particular day or days

3. See a list of tleets by a particular user

4. See list of all tleets with a particular hashtag

5. Tleet to your peeps

6. Exit

Enter the number of your choice: 2

Enter start and end date: 20190910 20190911

Here is a list of all tleets between 20190910 and 20190911:

At 7:50 on 20190910, klumprageous tleeted ...

I am so tired I could scream. #tired lethargy #coffee

 

At 13:30 on 20190910, howardtheduck tleeted ...

Ran over a pothole on my way from Cheeseland today. #illinois #fixyourroads

 

At 7:30 on 20190911, perrynotkaty tleeted ...

Klump better not ask me to do anything else on the server. #notaservant #uggh #dudeneedshair

 

At 11:40 on 20190911, perrynotkaty tleeted ...

Klump just asked me to do something else on the server. #tyrant #tired #dudeneedshair

 

Here are your options:

1. See a list of all tleets

2. See a list of all tleets from a particular day or days

3. See a list of tleets by a particular user

4. See list of all tleets with a particular hashtag

5. Tleet to your peeps

6. Exit

Enter the number of your choice: 3

Enter name of user: howardtheduck

Here is a list of all tleets from user howardtheduck:

At 13:30 on 20190910, howardtheduck tleeted ...

Ran over a pothole on my way from Cheeseland today. #illinois #fixyourroads

 

At 14:10 on 20190912, howardtheduck tleeted ...

The cafeteria stopped serving coffee early today. #tired #unfair #withdrawal

 

Here are your options:

1. See a list of all tleets

2. See a list of all tleets from a particular day or days

3. See a list of tleets by a particular user

4. See list of all tleets with a particular hashtag

5. Tleet to your peeps

6. Exit

Enter the number of your choice: 4

Enter hashtag of interest: tired

Here is a list of all tleets with hashtag #tired:

At 14:10 on 20190912, howardtheduck tleeted ...

The cafeteria stopped serving coffee early today. #tired #unfair #withdrawal 


Related Questions in computer science category