self.numLines = 0 self.TagsList = [] self.MembersList = [] self.TimesList = [] self.UniqueMembersList = [] self.UniqueTagsList = [] self.MessageList = [] It should open the file and begin reading each...


 self.numLines = 0
        self.TagsList = []
        self.MembersList = []
        self.TimesList = []
        self.UniqueMembersList = []
        self.UniqueTagsList = []
        self.MessageList = []


It should open the file and begin reading each line and populating the variables above in a for loop


        f = open(filename, "r")
        records = f.readlines()


        for record in records:


                      ............................


The file consists of Tags, Timestamps, Members, Users, and Messages. Because there are multiple members you will need to create a Unique members list that hold the name of the unique members as well as unique tags. The class should contain the following tags that will return the information above:


    GetNumLines(self):
    GetTagsList(self):
    GetTimesList(self):
    GetMembersList(self):
    GetUserSysList(self):
    GetUniqueMembersList(self):
    GetUniqueTagsList(self):
    GetMessageList(self):


Create an object to test out all the information above as follows:


sessionObj = ChatSessions('iphone_07_18-1.annot')


** Note: The file data is of the type:



T-1 20816 Eryn * entered the room.


where




  • T-1 is the tag


  • 20816 is the timestamp


  • Eryn is the member


  • *  (asterisk) is the UserSys symbol


  • entered the room. is the message


Upload the Python Files so that I may be able to test out your code.Do not simply upload an image of the code.



Jun 06, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here