2807Ict Programming Principles Answers | Assessment Answer

Who are the most social users?

Who are the top tweeters?

  • how the output is formatted in a table with justified columns;

Who are the top quotables?

Who sees the most tweets?

Write a program that prints the usernames of the top n users that would have seen the most tweets andhow many tweets they would have seen. A user will see a tweet if it comes from a user they follow, or they are mentioned in the tweet,

Answer:

Program File

The name of the python file that has all the codes to the required tasks is tweetReader.py. The additional files that will be required in order to support this program file are follows.txt and stream.txt.

Program Description

The program makes use of the object oriented programming to instantiate each tweeting entity. Classes were used to generalize this objects under one banner, and each object was stored inside a list of similar objects.

The task 1 of the program made use of the following class objects in order to identify all the members of the twitter society that were presented in the follows.txt file. Then, the program counts the3 maximum number of followings that a member has and prints the name. In order to display the names of every member in case of a tie, the program appends the names to another list and display it in lexicographical manner using the sort mechanism.

Task 2 expected to extract the name of members, who made the most number of tweets. In order to do this, all tweets from the stream.txt file was imported into the program and stored into the allTweets object list as new objects. Each object had unique member names and all their tweets from different lines of the file were coupled into single respective objects. These objects were then counted for the specification, then sorted and displayed accordingly.

Similarly, Task 3 too used the allTweets list to calculate the members with the most number of retweets.

Finally, for task 4, the allTweets list was yet again searched for, but this time with keen details to string manipulation techniques. It was made sure that the program was able to sort out the names of all mentions with a ‘@’ symbol from among all the tweets. Furthermore, the program also made sure that the mentioned names were properly extracted out of the tweets keeping in mind the next line characters and punctuations.

Program Execution

The program seems to work pretty fine with the test set of data that has been provided. It adheres to almost all the requirements of the program and produces the perfect output, as per expectation. The screenshot of execution has been presented below. This testing has been done by making varying changes to the follows.txt and stream.txt files, in order to test the program’s vitality.

Screenshot


Buy 2807Ict Programming Principles Answers | Assessment Answers Online

Talk to our expert to get the help with 2807Ict Programming Principles Answers | Assessment Answers from Assignment Hippo Experts to complete your assessment on time and boost your grades now

The main aim/motive of the finance assignment help services is to get connect with a greater number of students, and effectively help, and support them in getting completing their assignments the students also get find this a wonderful opportunity where they could effectively learn more about their topics, as the experts also have the best team members with them in which all the members effectively support each other to get complete their diploma assignment help Australia. They complete the assessments of the students in an appropriate manner and deliver them back to the students before the due date of the assignment so that the students could timely submit this, and can score higher marks. The experts of the assignment help services at www.assignmenthippo.com are so much skilled, capable, talented, and experienced in their field and use our best and free Citation Generator and cite your writing assignments, so, for this, they can effectively write the best economics assignment help services.

Get Online Support for 2807Ict Programming Principles Answers | Assessment Answer Assignment Help Online

Want to order fresh copy of the Sample 2807Ict Programming Principles Answers | Assessment Answers? online or do you need the old solutions for Sample 2807Ict Programming Principles Answers | Assessment Answer, contact our customer support or talk to us to get the answers of it.

Assignment Help Australia
Want latest solution of this assignment

Want to order fresh copy of the 2807Ict Programming Principles Answers | Assessment Answers? online or do you need the old solutions for Sample 2807Ict Programming Principles Answers | Assessment Answer, contact our customer support or talk to us to get the answers of it.