Question: In Python: A systems administrator keeps track of student activities logged into a system log file via a tracking application. The tracking application logs information

In Python: A systems administrator keeps track of student activities logged into a system log file via a tracking application. The tracking application logs information to the studentActivity.log file in the following format.Traceback (most recent call last):
File "C:\Users\Desktop\Event.py", line 31, in
if option =='1':
^^^^^^
NameError: name 'option' is not defined
studentId leventDate l event Id
-Each row's tokens are separated using the 'l' character. A couple of sample rows of actual data will look like this: 455151/09/12/2023/81772143563310911?20231773273
(.....
Actual log file (studentActivity.log) is given to you. eventIds are defined as shown in Figure 1.
The data types of each of the above are as follows: studentld = int, eventDate = String, evenld = int
Event ID Descriptions
817721=log in
817727= Log Out
900011= Change Directory
900015= Delete File
900017= Open File
900021= List a directory
999934= Access Shared Directory
773273= Web Access
Figure 1
Write a Python script to create a primitive Event Viewer where the system administrator can look at the events
by the studentld
all events/activities at once
When displaying, the events must print their descriptions in addition to the eventld. (See next page for a full scenario)
Event Viewer
Event Viewer
By: Print Your Name
Display Activities by Student ID
Display All Activities
Enter Option ( to Exit): |
Administrator Selects Option 1: if the administrator enters 1, ask for the student number like this: Event Viewer By: Print Your Name
Display Activities by Student ID
Display All Activities Enter Option ( to Exit): 1 Enter Student ID: 455151
If option 1 selected, ask for the student ID. Not existing Student ID's must display an error as shown in the scenario next page.
Event Viewer
By: Print Your Name
Display Activities by Student ID
Display All Activities
Enter Option (0 to Exit): 3
Menu must have a title and your name.
Error. Please enter a valid option!
Event Viewer
By: Print Your Name
Display Activities by Student ID
Administrator selects a wrong option. Loop back to the menu after showing an error message.
Display All Activities Enter Option (0 to Exit): 1
Administrator selects option 1 and enters a non-existing student number. An error message must be shown and then loop back to the menu.
Enter Student ID: 366366
Sorry Student Number: 366366 not found
Event Viewer
By: Print Your Name
Display Activities by Student ID
Display All Activities
Enter Option (0 to Exit): 1
Enter Student ID: 177377
Administrator selects option 1 and enters an existing student number. Display all activities of that student. Note that the Event ID's description must be printed in the last column =========== EVent Viewer ============ along with Date and Event I ID.
In Python: A systems administrator keeps track of

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!