You will need to create a class named ChatSesssion where it will have a constructor that will take in a parameter called filename. The file used is found here Download here . The constructor will create include the following variables:         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.

Microsoft Visual C#
7th Edition
ISBN:9781337102100
Author:Joyce, Farrell.
Publisher:Joyce, Farrell.
Chapter9: Using Classes And Objects
Section: Chapter Questions
Problem 8E
icon
Related questions
Question
100%

You will need to create a class named ChatSesssion where it will have a constructor that will take in a parameter called filename. The file used is found here Download here . The constructor will create include the following variables:

        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.

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps with 4 images

Blurred answer
Knowledge Booster
Study of Characters
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781305480537
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
Programming with Microsoft Visual Basic 2017
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:
9781337102124
Author:
Diane Zak
Publisher:
Cengage Learning